-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split tutorial from default ci build
- Loading branch information
Showing
1 changed file
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
name: CI | ||
|
||
|
@@ -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 | ||
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |