actions/checkout@v2 -> v4 (#26) #73
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: [push] | |
env: | |
# make cargo magically go faster | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: cargo test --all-targets | |
- name: Run tests in release mode | |
run: cargo test --all-targets --release | |
build-i686: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Run tests (i686) | |
run: cross test --all-targets --target i686-unknown-linux-gnu | |
- name: Run tests in release mode (i686) | |
run: cross test --all-targets --target i686-unknown-linux-gnu --release | |
build-aarch64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Run tests (aarch64) | |
run: cross test --all-targets --target aarch64-unknown-linux-gnu | |
- name: Run tests in release mode (aarch64) | |
run: cross test --all-targets --target aarch64-unknown-linux-gnu --release | |
fuzzer: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build fuzzer | |
run: cd fuzz; cargo test |