Disable release.yml #65
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: continuous integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
name: Check rust formatting | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
name: Clippy correctness checks | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { target: "x86_64-unknown-linux-gnu" } | |
- { target: "wasm32-unknown-unknown" } | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y -q \ | |
libasound2-dev \ | |
libudev-dev | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ci | |
prefix-key: v2 #increment this to bust the cache if needed | |
save-if: ${{ github.event_name == 'push' }} | |
- name: Install ${{ matrix.config.target }} target | |
run: rustup target add ${{ matrix.config.target }} | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Run cargo clippy | |
run: cargo clippy --target ${{ matrix.config.target }} -- -W clippy::correctness -D warnings | |
cargo-deny: | |
name: License and advisories check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
#prevent sudden announcement of a new advisory from failing ci: | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
command: check ${{ matrix.checks }} | |