Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read

env:
RUSTFLAGS: '-Dwarnings'

Expand All @@ -19,19 +22,16 @@ jobs:
uses: actions/checkout@v5

- name: Set up Rust toolchain
run: rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown

- name: Set up Rust cache
uses: swatinem/rust-cache@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Check formatting
run: cargo fmt --all --check

- name: Lint
run: cargo clippy --all-features
run: cargo clippy --all-features --locked

- name: Test
run: cargo test --all-features
run: cargo test --all-features --locked --release
17 changes: 9 additions & 8 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
Expand All @@ -13,21 +16,17 @@ jobs:
slides-build:
name: Build Slides
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Rust toolchain
run: |
rustup toolchain install stable --no-self-update --profile minimal
rustup target add wasm32-unknown-unknown

- name: Set up Rust cache
uses: swatinem/rust-cache@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Install Cargo Binary Install
uses: cargo-bins/cargo-binstall@main
Expand All @@ -54,10 +53,12 @@ jobs:
needs: slides-build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

steps:
- uses: actions/checkout@v5
with:
Expand Down
Loading