Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 20, 2024
1 parent be1772d commit 876cb92
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
os: ["ubuntu-latest", "windows-latest"]
rust: [
"stable",
"beta",
"nightly",
"1.79", # MSRV
]
Expand All @@ -43,12 +42,9 @@ jobs:
flags: "--features json"
# All features
- os: "ubuntu-latest"
rust: "stable"
flags: "--all-features"
- os: "ubuntu-latest"
rust: "beta"
rust: "nightly"
flags: "--all-features"
- os: "ubuntu-latest"
- os: "windows-latest"
rust: "nightly"
flags: "--all-features"
steps:
Expand Down Expand Up @@ -108,7 +104,20 @@ jobs:
with:
cache-on-failure: true
- name: cargo hack
run: cargo hack check --feature-powerset --depth 1 --skip nightly
run: cargo hack check --each-feature --skip nightly

feature-checks-all-targets:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: cargo hack check --each-feature --skip nightly --all-targets

check-no-std:
name: check no_std ${{ matrix.features }}
Expand All @@ -130,7 +139,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit 876cb92

Please sign in to comment.