File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: nightly
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ release_name :
7+ type : string
8+ description : Defaults to `nightly-YYYYMMDD`
59 schedule :
610 - cron : " 0 5 * * *"
711
4145 if : needs.check.outputs.skip != 'true'
4246
4347 strategy :
48+ fail-fast : false
4449 matrix :
4550 include :
4651 - runs-on : ubuntu-latest
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
You can’t perform that action at this time.
0 commit comments