Prepare for 0.3 release #151
Workflow file for this run
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 CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
strategy: | |
fail-fast: true | |
matrix: | |
# 1.78 is the MSRV for the crate | |
rust: ['nightly', 'beta', 'stable', '1.78'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Install ${{matrix.rust}} toolchain | |
if: matrix.rust == 'nightly' | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust}} | |
components: miri rustfmt clippy | |
- name: Install ${{matrix.rust}} toolchain | |
if: matrix.rust != 'nightly' | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust}} | |
components: rustfmt clippy | |
- uses: taiki-e/install-action@cargo-binstall | |
- name: Install iai-callgrind-runner and valgrind | |
run: | | |
version=$(cargo metadata --format-version=1 |\ | |
jq '.packages[] | select(.name == "iai-callgrind").version' |\ | |
tr -d '"' | |
) | |
cargo binstall --no-confirm iai-callgrind-runner --version $version | |
sudo apt install -y valgrind | |
- name: Run full test script | |
run: ./scripts/full-test.sh "${{matrix.rust}}" |