Skip to content

Commit

Permalink
GHA: Double zip editor artifacts for MacOS and Linux (fix for #6).
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Dec 16, 2023
1 parent 9abf8a0 commit df231e3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ jobs:
mv bin/* ${{env.OUTDIR}}
ls -R out/
# Zipping the editor artifact to retain executable bit;
# workaround for: https://github.com/actions/upload-artifact/issues/38
- name: Zip the editor artifact
if: matrix.target == 'editor'
shell: bash
run: |
pushd out/
zip -r godot-limboai.editor.linux.zip *
rm godot.*
echo -e "## Why another ZIP inside?\n\nWorkaround for: https://github.com/actions/upload-artifact/issues/38\n" > README.md
popd
- name: Rename templates
if: startsWith(matrix.target, 'template')
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ jobs:
name: macos-editor
path: bin/

# Zipping the editor bundle to retain executable bit;
# workaround for: https://github.com/actions/upload-artifact/issues/38
- name: Make editor bundle
run: |
ls bin/
Expand All @@ -234,6 +236,11 @@ jobs:
mkdir -p out/editor/Godot.app/Contents/MacOS
cp bin/godot.macos.editor.universal out/editor/Godot.app/Contents/MacOS/Godot
chmod +x out/editor/Godot.app/Contents/MacOS/Godot
pushd out/editor
zip -r Godot.app.zip Godot.app
rm -rf Godot.app
echo -e "## Why another ZIP inside?\n\nWorkaround for: https://github.com/actions/upload-artifact/issues/38\n" > README.md
popd
ls out/editor/
- name: Upload editor bundle
Expand Down

0 comments on commit df231e3

Please sign in to comment.