Skip to content

Commit 2305d8f

Browse files
committed
ci: pin nightly and actions, allow rebuilding a tag
1 parent 60b5c66 commit 2305d8f

2 files changed

Lines changed: 31 additions & 15 deletions

File tree

‎.github/workflows/release-plz.yml‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77

8+
env:
9+
# Kept in step with the release workflow so a release builds and publishes
10+
# on one toolchain. See .github/workflows/release.yml for why it is pinned.
11+
RUST_NIGHTLY: nightly-2026-09-09
12+
813
jobs:
914
release-plz-release:
1015
name: Release-plz release
@@ -13,13 +18,15 @@ jobs:
1318
contents: write
1419
steps:
1520
- name: Checkout repository
16-
uses: actions/checkout@v4
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1722
with:
1823
fetch-depth: 0
1924
- name: Install Rust toolchain
20-
uses: dtolnay/rust-toolchain@nightly
25+
uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1
26+
with:
27+
toolchain: ${{ env.RUST_NIGHTLY }}
2128
- name: Run release-plz
22-
uses: release-plz/action@v0.5
29+
uses: release-plz/action@a80d79efe0a195618acb02a4089d55fe74d2505f # v0.5.136
2330
with:
2431
command: release
2532
env:
@@ -37,14 +44,16 @@ jobs:
3744
cancel-in-progress: false
3845
steps:
3946
- name: Checkout repository
40-
uses: actions/checkout@v4
47+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4148
with:
4249
fetch-depth: 0
4350
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
4451
- name: Install Rust toolchain
45-
uses: dtolnay/rust-toolchain@nightly
52+
uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1
53+
with:
54+
toolchain: ${{ env.RUST_NIGHTLY }}
4655
- name: Run release-plz
47-
uses: release-plz/action@v0.5
56+
uses: release-plz/action@a80d79efe0a195618acb02a4089d55fe74d2505f # v0.5.136
4857
with:
4958
command: release-pr
5059
env:

‎.github/workflows/release.yml‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: Existing release tag to rebuild assets for
10+
required: true
711

812
concurrency:
913
group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,6 +19,10 @@ permissions:
1519
id-token: write
1620

1721
env:
22+
# Pinned because nightly-2026-09-12 started passing -Wl,--no-rosegment when
23+
# linking loongarch64, which zig cc rejects as an unsupported linker arg.
24+
# Lift once zig accepts it or rustc stops emitting it for that target.
25+
RUST_NIGHTLY: nightly-2026-09-09
1826
ZIG_VERSION: 0.16.0
1927
ZIG_SHA256: 70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00
2028

@@ -62,11 +70,9 @@ jobs:
6270
}
6371
steps:
6472
- name: Checkout
65-
uses: actions/checkout@v4
66-
67-
- name: Set the release version
68-
shell: bash
69-
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
73+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
74+
with:
75+
ref: ${{ inputs.tag || github.ref }}
7076

7177
- name: Install dependencies
7278
shell: bash
@@ -75,8 +81,9 @@ jobs:
7581
sudo apt-get install -y --no-install-recommends musl-tools b3sum
7682
7783
- name: Install Rust toolchain
78-
uses: dtolnay/rust-toolchain@nightly
84+
uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1
7985
with:
86+
toolchain: ${{ env.RUST_NIGHTLY }}
8087
targets: ${{ matrix.build.TARGET }}
8188
components: rust-src
8289

@@ -138,16 +145,16 @@ jobs:
138145
b3sum appimageupdate-${{ matrix.build.NAME }}.tar.xz > appimageupdate-${{ matrix.build.NAME }}.tar.xz.b3sum
139146
140147
- name: Upload to release
141-
uses: svenstaro/upload-release-action@v2
148+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5
142149
with:
143150
repo_token: ${{ secrets.GITHUB_TOKEN }}
144151
file: appimageupdate-${{ matrix.build.NAME }}*
145152
file_glob: true
146153
overwrite: true
147-
tag: ${{ github.ref }}
154+
tag: ${{ inputs.tag || github.ref }}
148155

149156
- name: Attest Build Provenance
150-
uses: actions/attest-build-provenance@v2
157+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
151158
with:
152159
subject-name: "appimageupdate-${{ matrix.build.NAME }}"
153160
subject-path: appimageupdate-${{ matrix.build.NAME }}*

0 commit comments

Comments
 (0)