Skip to content

JIT rework, misc fixes #4

JIT rework, misc fixes

JIT rework, misc fixes #4

Workflow file for this run

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
testflags:
- toolchain: beta
testflags:
- toolchain: nightly
testflags: RUSTDOCFLAGS=-Zsanitizer=address RUSTFLAGS=-Zsanitizer=address ASAN_OPTIONS=detect_leaks=1
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: |
${{ matrix.testflags }} cargo +${{ matrix.toolchain }} test
- name: Lint with ${{ matrix.toolchain }}
uses: actions-rs/cargo@v1
with:
toolchain: ${{ matrix.toolchain }}
command: clippy