Skip to content

Commit 85fd88d

Browse files
WodannWodann
authored andcommitted
fix(ci): add *.dll.lib artifact for Windows builds
1 parent e39273c commit 85fd88d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,17 @@ jobs:
163163
- {
164164
os: "ubuntu-latest",
165165
dir: linux64,
166-
cli: "mun",
167-
lib: "libmun_runtime.so"
166+
artifacts: "mun libmun_runtime.so"
168167
}
169168
- {
170169
os: "windows-2016",
171170
dir: win64,
172-
cli: "mun.exe",
173-
lib: "mun_runtime.dll"
171+
artifacts: "mun.exe mun_runtime.dll mun_runtime.dll.lib"
174172
}
175173
- {
176174
os: "macOS-latest",
177175
dir: osx64,
178-
cli: "mun",
179-
lib: "libmun_runtime.dylib"
176+
artifacts: "mun libmun_runtime.dylib"
180177
}
181178
steps:
182179
- uses: actions/checkout@v1
@@ -201,9 +198,18 @@ jobs:
201198

202199
- run: mkdir -p ${{ matrix.config.dir }}
203200

204-
- run: mv target/release/${{ matrix.config.cli }} ${{ matrix.config.dir }}
205-
206-
- run: mv target/release/${{ matrix.config.lib }} ${{ matrix.config.dir }}
201+
- name: Move artifacts
202+
env:
203+
ARTIFACTS: ${{ matrix.config.artifacts }}
204+
OUT_DIR: ${{ matrix.config.dir }}
205+
run: |
206+
import os
207+
artifacts = os.environ['ARTIFACTS'].split()
208+
for artifact in artifacts:
209+
src = "target/release/%s" % artifact
210+
dst = os.environ['OUT_DIR'] + "/" + artifact
211+
os.rename(src, dst)
212+
shell: python
207213

208214
- name: Shorten commit SHA
209215
run: |

0 commit comments

Comments
 (0)