Skip to content
Merged
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
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
test:
name: Test
Expand Down Expand Up @@ -62,9 +66,15 @@ jobs:
with:
persist-credentials: false
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
env:
RUST_TOOLCHAIN: ${{ matrix.rust }}
run: rustup update "$RUST_TOOLCHAIN" --no-self-update && rustup default "$RUST_TOOLCHAIN"
shell: bash
- name: Add target
env:
RUST_TARGET: ${{ matrix.target }}
run: rustup target add "$RUST_TARGET"
shell: bash
- run: rustup target add ${{ matrix.target }}
- run: rustup component add clippy rustfmt
- run: cargo fmt -- --check
if: matrix.build == 'x86_64'
Expand Down
Loading