Skip to content

Commit

Permalink
ci: fix bundle on linux and macos
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel Powers <[email protected]>
  • Loading branch information
Ryex committed Oct 2, 2024
1 parent e3474c7 commit 1003431
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
run: |
ls .
ls ./cmd/dungeondraft-packager
- name: Prep artifacts (windows)
if: ${{ runner.os == 'windows' }}
shell: msys2 {0}
Expand All @@ -114,14 +115,31 @@ jobs:
cp "./dungeondraft-packager-cli.exe" ./install
cp *.md ./install
cp /ucrt64/bin/libwebp-*.dll ./install
cp /ucrt64/bin/libsharpyuv--*.dll ./install
- name: Prep artifacts
if: ${{ runner.os != 'windows' }}
cp /ucrt64/bin/libsharpyuv-*.dll ./install
ls -r ./install
ldd "./install/Dungeondraft GoPackager.exe"
- name: Prep artifacts (linux)
if: ${{ runner.os == 'Linux' }}
run: |
mkdir install
tar -xJf "./Dungeondraft GoPackager.tar.xz" -C ./install
cp ./dungeondraft-packager* ./install/usr/local/bin
sed -i "/install:/install:\n\tinstall -Dm00644 usr/local/bin/$$(Exec)-cli $$(DESTDIR)$$(PREFIX)/bin/$$(Exec)-cli" ./install/Makefile
cp *.md ./install
ls -r ./install
ldd ./install/usr/local/bin/dungeondraft-packager
- name: Prep artifacts (maOS)
if: ${{ runner.os == 'macOS' }}
run: |
mkdir install
cp "./Dungeondraft GoPackager"* ./install
cp -r "./Dungeondraft GoPackager.app" ./install
cp ./dungeondraft-packager* ./install
cp *.md ./install
ls ./install
ls -r "./install/Dungeondraft GoPackager.app"
otool -L "./install/Dungeondraft GoPackager.app/Contents/MacOS/dungeondraft-packager"
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 1003431

Please sign in to comment.