Skip to content

Commit

Permalink
Merge pull request #2 from mozilla/fix-ci
Browse files Browse the repository at this point in the history
ci: Fix CI
  • Loading branch information
larseggert authored Sep 2, 2024
2 parents 73542cc + f8a41d4 commit 4a24b89
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,24 @@ permissions:

jobs:
check:
name: Build & test
name: Check
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
# Keep low end in sync with Cargo.toml
rust-toolchain: [1.76.0, stable, nightly]
type: [debug, release]
type: [debug]
include:
- os: ubuntu-latest
rust-toolchain: stable
type: release
- os: macos-14
rust-toolchain: stable
type: release
- os: windows-latest
rust-toolchain: stable
type: release
env:
BUILD_TYPE: ${{ matrix.type == 'release' && '--release' || '' }}
runs-on: ${{ matrix.os }}
Expand All @@ -37,14 +47,16 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Get "Install Rust" action
- name: Get "Install Rust" action from neqo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: mozilla/neqo
path: .github/actions
sparse-checkout: |
.github/actions/rust
path: neqo

- name: Install Rust
uses: ./.github/actions/rust
uses: ./neqo/.github/actions/rust
with:
version: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy, llvm-tools-preview
Expand All @@ -60,7 +72,7 @@ jobs:
run: |
# shellcheck disable=SC2086
RUST_LOG=trace cargo +${{ matrix.rust-toolchain }} llvm-cov nextest $BUILD_TYPE --no-fail-fast --lcov --output-path lcov.info
cargo +${{ matrix.rust-toolchain }} bench --features bench --no-run
cargo +${{ matrix.rust-toolchain }} bench --no-run
- name: Check formatting
run: |
Expand All @@ -78,7 +90,7 @@ jobs:
- name: Clippy
run: |
cargo +${{ matrix.rust-toolchain }} hack clippy --all-targets --feature-powerset --exclude-features gecko -- -D warnings || ${{ matrix.rust-toolchain == 'nightly' }}
cargo +${{ matrix.rust-toolchain }} hack clippy --all-targets --feature-powerset -- -D warnings || ${{ matrix.rust-toolchain == 'nightly' }}
if: success() || failure()

- name: Check rustdoc links
Expand Down

0 comments on commit 4a24b89

Please sign in to comment.