Skip to content

Commit

Permalink
Merge branch 'main' into fix-remove-windows-min
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Sep 2, 2024
2 parents 21d9495 + 4a24b89 commit 3bf2864
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 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,8 +47,16 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

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

- name: Install Rust
uses: mozilla/neqo/.github/actions/rust
uses: ./neqo/.github/actions/rust
with:
version: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy, llvm-tools-preview
Expand All @@ -54,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 @@ -72,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 3bf2864

Please sign in to comment.