From dfd5963dbff3403cbf47fd193d21da9faa0df8ac Mon Sep 17 00:00:00 2001 From: Jim Borden Date: Thu, 3 Mar 2022 07:53:47 +0900 Subject: [PATCH] Work around github actions artifact limitations The inability to store symlinks in artifacts. Closes #8 --- .github/workflows/package.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 4a96589..88def0e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -69,7 +69,11 @@ jobs: - name: Package run: | mkdir -p ${{ github.workspace }}/dist - cp ${{ github.workspace }}/out/Darwin/libcblite* ${{ github.workspace }}/dist + full_filename=$(ls ${{ github.workspace }}/out/Darwin | grep libcblite\.\d.\d.\d\.dylib) + short_filename=$(ls ${{ github.workspace }}/out/Darwin | grep libcblite\.\d.\.dylib) + cp ${{ github.workspace }}/out/Darwin/$full_filename ${{ github.workspace }}/dist + ln -s $full_filename ${{ github.workspace }}/dist/$short_filename + ln -s $short_filename ${{ github.workspace }}/dist/libcblite.dylib cp ${{ github.workspace }}/out/Windows/cblite.dll ${{ github.workspace }}/dist npm install npm run package-only