release 9.1.0 #621
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Continuous integration | |
jobs: | |
Fuzz: | |
name: Fuzz | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.58.0 | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v2 | |
- name: Install hongfuzz dependancies | |
run: sudo apt update && sudo apt install build-essential binutils-dev libunwind-dev libblocksruntime-dev liblzma-dev | |
- name: Checkout Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Running fuzzer | |
env: | |
DO_FUZZ: true | |
DO_NO_STD: true | |
run: ./contrib/test.sh | |
Nightly: | |
name: Nightly - Bench + Docs + Fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v2 | |
- name: Checkout Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Running benchmarks | |
env: | |
DO_BENCH: true | |
DO_NO_STD: true | |
run: ./contrib/test.sh | |
- name: Building docs | |
env: | |
DO_DOCS: true | |
run: ./contrib/test.sh | |
- name: Running formatter | |
env: | |
DO_FMT: true | |
run: ./contrib/test.sh | |
Tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- rust: stable | |
- rust: beta | |
- rust: nightly | |
- rust: 1.41.1 | |
- rust: 1.47 | |
DO_NO_STD: true | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v2 | |
- name: Checkout Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Running cargo | |
env: | |
DO_FEATURE_MATRIX: true | |
DO_NO_STD: ${{ matrix.DO_NO_STD }} | |
run: ./contrib/test.sh | |
Embedded: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi | |
- name: Checkout Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rust-src | |
target: thumbv7m-none-eabi | |
- name: Run | |
env: | |
RUSTFLAGS: "-C link-arg=-Tlink.x" | |
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel" | |
run: cd embedded && cargo run --target thumbv7m-none-eabi --release |