Merge pull request #112 from jfrimmel/test-with-beta-compiler #143
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: Continuos Integration | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# build the crate on Linux, Windows and MacOS (can only be tested on Linux) | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
rust: [stable, nightly] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | |
- name: Build | |
run: cargo build | |
# execute all tests (requires an installed valgrind) | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install valgrind | |
run: sudo apt install valgrind | |
- run: rustup update --no-self-update 1.82 && rustup default 1.82 | |
- name: Run tests | |
run: cargo test |