Skip to content

Commit 642b104

Browse files
committed
ci: allow overriding release tag
1 parent 441feb3 commit 642b104

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 19 additions & 2 deletions
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

@@ -109,7 +126,7 @@ jobs:
109126
uses: actions/upload-artifact@v3
110127
with:
111128
path: ./odoo-lsp-*.vsix
112-
name: odoo-lsp.vsix
129+
name: odoo-lsp-extension.vsix
113130

114131
release:
115132
name: Create Release
@@ -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)