Skip to content

Commit

Permalink
github: add needed DLLs to windows zips
Browse files Browse the repository at this point in the history
  • Loading branch information
niv committed Nov 19, 2021
1 parent 394422e commit f9d6e60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,21 @@ jobs:
name: neverwinter.linux.amd64
path: bin/*

- name: Download Windows DLLs
if: matrix.bintype == 'win-i386' || matrix.bintype == 'win-amd64'
run: |
mkdir dll
cd dll
wget https://nim-lang.org/download/dlls.zip
unzip dlls.zip
- name: Compile for Windows i386
if: matrix.bintype == 'win-i386'
# on Ubuntu the binary has no .exe extension for some reason
run: |
nimble build -d:release -d:mingw --cpu:i386
for f in bin/*; do mv "$f" "$f.exe"; done
for f in dll/*; do cp "$f" "bin/"; done
- name: Upload Windows i386 artifact
if: matrix.bintype == 'win-i386'
Expand All @@ -75,6 +84,7 @@ jobs:
run: |
nimble build -d:release -d:mingw --cpu:amd64
for f in bin/*; do mv "$f" "$f.exe"; done
for f in dll/*; do cp "$f" "bin/"; done
- name: Upload Windows amd64 artifact
if: matrix.bintype == 'win-amd64'
Expand Down

0 comments on commit f9d6e60

Please sign in to comment.