fix: don't run test with ubuntu cargo on other os
Some checks are pending
Audit / audit (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (push) Waiting to run
Typo / typo (push) Waiting to run

This commit is contained in:
Cyrix126 2024-11-19 15:47:18 +01:00
parent 2695b1e116
commit fd4e62342e
2 changed files with 3 additions and 10 deletions

View file

@ -22,14 +22,11 @@ jobs:
- name: Format
run: cargo fmt --all --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test
run: cargo test
clippy:
runs-on: ${{ matrix.os }}
strategy:
@ -49,10 +46,7 @@ jobs:
- name: Check compilation
run: cargo check --verbose
doc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Documentation

View file

@ -1,5 +1,4 @@
[toolchain]
# channel = "nightly-2024-10-11"
channel = "nightly"
components = [ "rustfmt", "rustc-dev", "cargo", "clippy", "rust-analyzer", "rust-src", "llvm-tools-preview", "rustc-codegen-cranelift-preview"]
target = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin","x86_64-pc-windows-gnu"]