Fix linux compilation #445
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: CI | |
on: [push, pull_request] | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
jobs: | |
test: | |
defaults: | |
run: | |
shell: bash | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-14, windows-latest] | |
rust: [stable, beta, nightly] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain add ${{ matrix.rust }} --no-self-update | |
rustup default ${{ matrix.rust }} | |
- name: Create Cargo.lock | |
run: cargo update | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo test --all-features | |
clippy: | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-14, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain add stable --no-self-update --component clippy | |
rustup default stable | |
- name: Create Cargo.lock | |
run: cargo update | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy --no-deps | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain add stable --no-self-update --component rustfmt | |
rustup default stable | |
- run: cargo fmt -- --check | |
wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain add stable --no-self-update --target wasm32-wasi | |
rustup default stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check --target wasm32-wasi |