Skip to content

Commit

Permalink
Split tutorial from default ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 30, 2024
1 parent 6c95c15 commit 194083b
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request]
on: [ push, pull_request ]

name: CI

Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust_version: [stable, 1.70.0]
rust_version: [ stable, 1.70.0 ]
os:
- ubuntu-latest
- windows-latest
Expand Down Expand Up @@ -58,13 +58,13 @@ jobs:
token: ${{ github.token }}
# Transitive dependency of wasm-bindgen; works around https://github.com/rustwasm/wasm-bindgen/issues/3918
- run: cargo update -p bumpalo --precise 3.14.0
- run: cargo build --workspace --exclude webauthn-authenticator-rs
- run: cargo build --workspace --exclude webauthn-authenticator-rs --exclude actix-web --exclude axum --exclude tide

# Don't run clippy on Windows, we only need to run it on Linux
- if: runner.os != 'windows'
run: cargo clippy --no-deps --workspace --exclude webauthn-authenticator-rs --all-targets
run: cargo clippy --no-deps --workspace --exclude webauthn-authenticator-rs --exclude actix-web --exclude axum --exclude tide --all-targets

- run: cargo test --workspace --exclude webauthn-authenticator-rs
- run: cargo test --workspace --exclude webauthn-authenticator-rs --exclude actix-web --exclude axum --exclude tide

# Some clap errors manifest as panics at runtime. Running tools with
# --help should be enough to find an issue.
Expand All @@ -85,7 +85,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust_version: [stable, 1.70.0]
rust_version: [ stable, 1.70.0 ]
features:
- bluetooth
- cable
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust_version: [stable, nightly]
rust_version: [ stable, nightly ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -233,3 +233,26 @@ jobs:
if-no-files-found: error
retention-days: 14
- run: ./.github/check_built_docs.sh

tutorial:
name: Tutorial builds
strategy:
fail-fast: false
matrix:
rust_version: [ stable, nightly ]
os:
- ubuntu-latest
- windows-latest

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_version }}
components: clippy
- uses: mozilla-actions/[email protected]
with:
version: v0.4.2

- run: cargo build -p actix-web,axum,tide

0 comments on commit 194083b

Please sign in to comment.