JIT rework, misc fixes #3
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: Build | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }} | |
cancel-in-progress: true | |
jobs: | |
build_and_test: | |
name: Build and test package | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- toolchain: stable | |
- toolchain: beta | |
- toolchain: nightly | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install toolchain (${{ matrix.toolchain }}) | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
components: clippy | |
- name: Build with ${{ matrix.toolchain }} | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
command: build | |
args: --release --all-features --all-targets | |
- name: Test with ${{ matrix.toolchain }} | |
run: | | |
RUSTDOCFLAGS=-Zsanitizer=address \ | |
RUSTFLAGS=-Zsanitizer=address \ | |
ASAN_OPTIONS=detect_leaks=1 \ | |
cargo +${{ matrix.toolchain }} test --target=x86_64-unknown-linux-gnu | |
- name: Lint with ${{ matrix.toolchain }} | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
command: clippy |