This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
Nyx v2 #4
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: CI | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: 'Test & Clippy' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clippy | |
run: | | |
rustup component add clippy | |
cargo clippy -- -D warnings | |
- name: Test | |
run: cargo test --verbose | |
miri: | |
name: 'Miri' | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Miri | |
run: | | |
rustup toolchain install nightly --component miri | |
rustup override set nightly | |
cargo miri setup | |
- name: Test with Miri | |
run: cargo miri test | |
build: | |
name: 'Build' | |
needs: [test, miri] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose |