Commit 5f3c6ed 1 parent 8e23447 commit 5f3c6ed Copy full SHA for 5f3c6ed
File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 35
35
# Checks out the repository
36
36
- uses : actions/checkout@v2
37
37
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
+
38
48
# Installs libraries
39
49
- name : install musl-gcc
40
50
run : sudo apt-get install -y musl-tools
55
65
mingw-w64-x86_64-toolchain
56
66
mingw-w64-x86_64-autotools
57
67
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
-
68
68
# Install the Nim compiler and dependencies
69
69
- name : Install Nim and deps
70
70
run : |
83
83
84
84
# Build for Windows
85
85
- 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
87
88
if : matrix.os == 'windows-latest'
88
89
89
90
# UPX compress (*nix)
You can’t perform that action at this time.
0 commit comments