Skip to content

Commit 3d1a540

Browse files
authored
Update add-artifacts-to-current-release.yml
1 parent 54b66c8 commit 3d1a540

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/add-artifacts-to-current-release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
os:
1515
- ubuntu-latest
1616
- macos-13
17-
- windows-19
17+
- windows-2019
1818

1919
env:
2020
CHOOSENIM_CHOOSE_VERSION: stable
@@ -30,7 +30,7 @@ jobs:
3030
# Detects OS and provide Nim-friendly OS identifiers
3131
- name: Detect current OS
3232
id: os
33-
run: echo "os=${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-13' && 'macosx' || matrix.os == 'windows-19' && 'windows'}}" >> $GITHUB_OUTPUT
33+
run: echo "os=${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-13' && 'macosx' || matrix.os == 'windows-2019' && 'windows'}}" >> $GITHUB_OUTPUT
3434

3535
# Checks out the repository
3636
- uses: actions/checkout@v2
@@ -43,15 +43,15 @@ jobs:
4343
# Sets path (Windows)
4444
- name: Update %PATH%
4545
run: echo "${HOME}/.nimble/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
46-
if: matrix.os == 'windows-19'
46+
if: matrix.os == 'windows-2019'
4747

4848
# Installs libraries
4949
- name: install musl-gcc
5050
run: sudo apt-get install -y musl-tools
5151
if: matrix.os == 'ubuntu-latest'
5252

5353
- name: Setup Msys2
54-
if: matrix.os == 'windows-19'
54+
if: matrix.os == 'windows-2019'
5555
uses: msys2/setup-msys2@v2
5656
with:
5757
msystem: MINGW64
@@ -85,7 +85,7 @@ jobs:
8585
- name: Build (Windows)
8686
shell: msys2 {0}
8787
run: nimble build -v -y -d:release --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min
88-
if: matrix.os == 'windows-19'
88+
if: matrix.os == 'windows-2019'
8989

9090
# UPX compress (Linux)
9191
- name: UPX
@@ -103,7 +103,7 @@ jobs:
103103
files: |
104104
min.exe
105105
args: --best --force
106-
if: matrix.os == 'windows-19'
106+
if: matrix.os == 'windows-2019'
107107

108108
# Retrieve ID and Name of the current (draft) release
109109
- name: "Get current release"
@@ -122,7 +122,7 @@ jobs:
122122
# Package the resulting Windows binary
123123
- name: Create artifact (Windows)
124124
run: Compress-Archive -Path min.exe -DestinationPath min_${{steps.current-release.outputs.tag_name}}_windows_x64.zip
125-
if: matrix.os == 'windows-19'
125+
if: matrix.os == 'windows-2019'
126126

127127
# Upload artifacts to current draft release
128128
- name: "Upload to current release"

0 commit comments

Comments
 (0)