Skip to content

Commit 223053e

Browse files
committed
ci: allow overriding release tag
1 parent 441feb3 commit 223053e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: nightly
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
release_name:
7+
type: string
8+
description: Defaults to `nightly-YYYYMMDD`
59
schedule:
610
- cron: "0 5 * * *"
711

@@ -41,6 +45,7 @@ jobs:
4145
if: needs.check.outputs.skip != 'true'
4246

4347
strategy:
48+
fail-fast: false
4449
matrix:
4550
include:
4651
- runs-on: ubuntu-latest
@@ -68,6 +73,18 @@ jobs:
6873
toolchain: stable
6974
target: ${{ matrix.target }}
7075

76+
- name: Additional setup for musl
77+
if: contains(matrix.target, 'musl')
78+
run: |
79+
sudo apt-get update
80+
sudo apt-get install -y musl-tools
81+
82+
- name: Additional setup for Linux x86
83+
if: matrix.target == 'i686-unknown-linux-gnu'
84+
run: |
85+
sudo apt-get update
86+
sudo apt-get install -y gcc-multilib
87+
7188
- name: Build
7289
run: cargo build --release --target ${{ matrix.target }}
7390

@@ -130,7 +147,7 @@ jobs:
130147
openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256";
131148
done
132149
- name: Get current date
133-
run: echo "TAG=nightly-$(date +'%Y%m%d')" >> "$GITHUB_ENV"
150+
run: echo "TAG=${{ inputs.release_name || 'nightly-$(date +"%Y%m%d")' }}" >> "$GITHUB_ENV"
134151
- name: Create tag
135152
run: git tag -f ${{ env.TAG }} && git push --tags
136153
- name: Release

0 commit comments

Comments
 (0)