Skip to content

Commit 5f3c6ed

Browse files
committed
Fixes.
1 parent 8e23447 commit 5f3c6ed

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

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

+12-11
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ jobs:
3535
# Checks out the repository
3636
- uses: actions/checkout@v2
3737

38+
# Sets path (Linux, macOS)
39+
- name: Update $PATH
40+
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH
41+
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
42+
43+
# Sets path (Windows)
44+
- name: Update %PATH%
45+
run: echo "${HOME}/.nimble/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
46+
if: matrix.os == 'windows-latest'
47+
3848
# Installs libraries
3949
- name: install musl-gcc
4050
run: sudo apt-get install -y musl-tools
@@ -55,16 +65,6 @@ jobs:
5565
mingw-w64-x86_64-toolchain
5666
mingw-w64-x86_64-autotools
5767
58-
# Sets path (Linux, macOS)
59-
- name: Update $PATH
60-
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH
61-
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
62-
63-
# Sets path (Windows)
64-
- name: Update %PATH%
65-
run: echo "${HOME}/.nimble/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
66-
if: matrix.os == 'windows-latest'
67-
6868
# Install the Nim compiler and dependencies
6969
- name: Install Nim and deps
7070
run: |
@@ -83,7 +83,8 @@ jobs:
8383

8484
# Build for Windows
8585
- name: Build (Windows)
86-
run: nimble build -v -y -d:release --opt:size --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min
86+
shell: msys2 {0}
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
8788
if: matrix.os == 'windows-latest'
8889

8990
# UPX compress (*nix)

0 commit comments

Comments
 (0)