Skip to content

Commit

Permalink
a few more gha tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Feb 9, 2025
1 parent 03fea2f commit 665a6f0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --all-targets
- run: cargo build --all-targets --all-features
build-musl:
runs-on: ubuntu-latest
steps:
Expand All @@ -20,27 +20,27 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo build --all-targets --target x86_64-unknown-linux-musl
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo build --all-targets --all-features --target x86_64-unknown-linux-musl
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --all-targets
- run: cargo build --all-targets --all-features
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cross
- run: cross check --all-targets --target aarch64-linux-android --no-default-features
- run: cross check --all-targets --all-features --target aarch64-linux-android --no-default-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --all-features
test-musl:
runs-on: ubuntu-latest
steps:
Expand All @@ -49,27 +49,29 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo test --target x86_64-unknown-linux-musl
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo test --all-features --target x86_64-unknown-linux-musl
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --all-features
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo install --locked --debug cargo-deny
- run: cargo clippy --all-targets -- -Dwarnings
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-deny
- run: cargo clippy --all-targets --all-features -- -Dwarnings
- run: cargo fmt --check
- run: cargo deny check
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo doc
- run: RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features
- run: cargo test --doc --all-features

0 comments on commit 665a6f0

Please sign in to comment.