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
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ updates:
# The shared signing workflow stays at the organisation pin, which moves
# for every program at once: design/releases.md in
# Project-Colony-Resources, "The pin". A Dependabot PR would move one
# repository alone.
# repository alone. Dependabot names that dependency after the workflow
# path (Project-Colony/Project-Colony-Resources/.github/workflows/...), so
# the rule needs the trailing wildcard to match it.
ignore:
- dependency-name: Project-Colony/Project-Colony-Resources
- dependency-name: "Project-Colony/Project-Colony-Resources*"
groups:
actions:
patterns: ["*"]
Expand Down
42 changes: 25 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:
with:
persist-credentials: false

# Pinned to master with `toolchain: stable` rather than to the `stable`
# branch: that branch is rebased onto every master commit, so a SHA
# pinned on it stops being reachable from any branch.
- uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master, 2026-10-09
with:
toolchain: stable
# rustup is on every GitHub-hosted runner image, so there is no
# third-party toolchain action to pin. bash keeps the step the same on
# the Windows and macOS legs.
- name: Install Rust
shell: bash
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable

- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2

Expand All @@ -63,9 +65,11 @@ jobs:
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "RUSTUP_TOOLCHAIN=$version" >> "$GITHUB_ENV"

- uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master, 2026-10-09
with:
toolchain: ${{ steps.msrv.outputs.version }}
- name: Install Rust
shell: bash
run: |
rustup toolchain install "$RUSTUP_TOOLCHAIN" --profile minimal --no-self-update
rustup default "$RUSTUP_TOOLCHAIN"

- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
Expand All @@ -85,10 +89,12 @@ jobs:
with:
persist-credentials: false

- uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master, 2026-10-09
with:
toolchain: stable
components: clippy
- name: Install Rust
shell: bash
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
rustup component add clippy

- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2

Expand All @@ -103,10 +109,12 @@ jobs:
with:
persist-credentials: false

- uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master, 2026-10-09
with:
toolchain: stable
components: rustfmt
- name: Install Rust
shell: bash
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
rustup component add rustfmt

- name: Formatting
run: cargo fmt --check
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,15 @@ jobs:
ref: ${{ needs.release-please.outputs.tag_name || inputs.tag }}
persist-credentials: false

# Pinned to master with `toolchain: stable` rather than to the `stable`
# branch: that branch is rebased onto every master commit, so a SHA
# pinned on it stops being reachable from any branch.
- uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master, 2026-10-09
with:
toolchain: stable
targets: ${{ matrix.target }}
# rustup is on every GitHub-hosted runner image, so there is no
# third-party toolchain action to pin. Adding the target is a no-op on
# the legs that build for their own host; the Intel macOS leg needs it.
- name: Install Rust
shell: bash
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
rustup target add ${{ matrix.target }}

# No build cache here: SignPath forbids release builds that reuse
# outputs of earlier, unverified builds.
Expand Down
Loading