From 85fd88d5efb17dc0ab798e06ce9ded0d8c105d19 Mon Sep 17 00:00:00 2001 From: Wodann Date: Sun, 10 Nov 2019 18:17:26 +0100 Subject: [PATCH] fix(ci): add *.dll.lib artifact for Windows builds --- .github/workflows/ci.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f5a6c68..1f22d2fc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,20 +163,17 @@ jobs: - { os: "ubuntu-latest", dir: linux64, - cli: "mun", - lib: "libmun_runtime.so" + artifacts: "mun libmun_runtime.so" } - { os: "windows-2016", dir: win64, - cli: "mun.exe", - lib: "mun_runtime.dll" + artifacts: "mun.exe mun_runtime.dll mun_runtime.dll.lib" } - { os: "macOS-latest", dir: osx64, - cli: "mun", - lib: "libmun_runtime.dylib" + artifacts: "mun libmun_runtime.dylib" } steps: - uses: actions/checkout@v1 @@ -201,9 +198,18 @@ jobs: - run: mkdir -p ${{ matrix.config.dir }} - - run: mv target/release/${{ matrix.config.cli }} ${{ matrix.config.dir }} - - - run: mv target/release/${{ matrix.config.lib }} ${{ matrix.config.dir }} + - name: Move artifacts + env: + ARTIFACTS: ${{ matrix.config.artifacts }} + OUT_DIR: ${{ matrix.config.dir }} + run: | + import os + artifacts = os.environ['ARTIFACTS'].split() + for artifact in artifacts: + src = "target/release/%s" % artifact + dst = os.environ['OUT_DIR'] + "/" + artifact + os.rename(src, dst) + shell: python - name: Shorten commit SHA run: |