14
14
os :
15
15
- ubuntu-latest
16
16
- macos-13
17
- - windows-19
17
+ - windows-2019
18
18
19
19
env :
20
20
CHOOSENIM_CHOOSE_VERSION : stable
30
30
# Detects OS and provide Nim-friendly OS identifiers
31
31
- name : Detect current OS
32
32
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
34
34
35
35
# Checks out the repository
36
36
- uses : actions/checkout@v2
@@ -43,15 +43,15 @@ jobs:
43
43
# Sets path (Windows)
44
44
- name : Update %PATH%
45
45
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 '
47
47
48
48
# Installs libraries
49
49
- name : install musl-gcc
50
50
run : sudo apt-get install -y musl-tools
51
51
if : matrix.os == 'ubuntu-latest'
52
52
53
53
- name : Setup Msys2
54
- if : matrix.os == 'windows-19 '
54
+ if : matrix.os == 'windows-2019 '
55
55
uses : msys2/setup-msys2@v2
56
56
with :
57
57
msystem : MINGW64
85
85
- name : Build (Windows)
86
86
shell : msys2 {0}
87
87
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 '
89
89
90
90
# UPX compress (Linux)
91
91
- name : UPX
@@ -103,7 +103,7 @@ jobs:
103
103
files : |
104
104
min.exe
105
105
args : --best --force
106
- if : matrix.os == 'windows-19 '
106
+ if : matrix.os == 'windows-2019 '
107
107
108
108
# Retrieve ID and Name of the current (draft) release
109
109
- name : " Get current release"
@@ -122,7 +122,7 @@ jobs:
122
122
# Package the resulting Windows binary
123
123
- name : Create artifact (Windows)
124
124
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 '
126
126
127
127
# Upload artifacts to current draft release
128
128
- name : " Upload to current release"
0 commit comments