Merge pull request #10 from adierking/fix-asserts #45
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
name: Rust | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- dev | |
- "*_impl" | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.toolchain == 'nightly' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
toolchain: [stable, beta, nightly] | |
target: [ | |
aarch64-unknown-linux-gnu, | |
arm-unknown-linux-gnueabi, | |
arm-unknown-linux-musleabi, | |
armv7-unknown-linux-gnueabihf, | |
armv7-unknown-linux-musleabihf, | |
i586-unknown-linux-gnu, | |
i686-unknown-linux-gnu, | |
i686-unknown-linux-musl, | |
powerpc-unknown-linux-gnu, | |
powerpc64-unknown-linux-gnu, | |
powerpc64le-unknown-linux-gnu, | |
x86_64-unknown-linux-gnu, | |
x86_64-unknown-linux-musl, | |
aarch64-linux-android, | |
arm-linux-androideabi, | |
armv7-linux-androideabi, | |
x86_64-linux-android | |
] | |
include: | |
- os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/git | |
~/.cargo/registry | |
~/.cargo/bin | |
key: ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.toolchain }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Setup toolchain | |
if: ${{ matrix.toolchain != 'nightly' }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
override: true | |
- name: Setup toolchain | |
if: ${{ matrix.toolchain == 'nightly' }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
- name: Set ulimit | |
run: ulimit -Sn 4096 | |
- name: Test (all features) | |
env: | |
TARGET: ${{ matrix.target }} | |
run: cargo test --locked --all-features | |
- name: Build | |
env: | |
TARGET: ${{ matrix.target }} | |
run: cargo build --release --locked | |
- name: Build (all features) | |
env: | |
TARGET: ${{ matrix.target }} | |
run: cargo build --release --locked --all-features |