GHA: Double zip editor artifacts for MacOS and Linux (fix for #6).
Workaround for https://github.com/actions/upload-artifact/issues/38.
This commit is contained in:
parent
9abf8a084f
commit
df231e3f2c
|
@ -179,6 +179,18 @@ jobs:
|
||||||
mv bin/* ${{env.OUTDIR}}
|
mv bin/* ${{env.OUTDIR}}
|
||||||
ls -R out/
|
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
|
- name: Rename templates
|
||||||
if: startsWith(matrix.target, 'template')
|
if: startsWith(matrix.target, 'template')
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -223,6 +223,8 @@ jobs:
|
||||||
name: macos-editor
|
name: macos-editor
|
||||||
path: bin/
|
path: bin/
|
||||||
|
|
||||||
|
# Zipping the editor bundle to retain executable bit;
|
||||||
|
# workaround for: https://github.com/actions/upload-artifact/issues/38
|
||||||
- name: Make editor bundle
|
- name: Make editor bundle
|
||||||
run: |
|
run: |
|
||||||
ls bin/
|
ls bin/
|
||||||
|
@ -234,6 +236,11 @@ jobs:
|
||||||
mkdir -p out/editor/Godot.app/Contents/MacOS
|
mkdir -p out/editor/Godot.app/Contents/MacOS
|
||||||
cp bin/godot.macos.editor.universal out/editor/Godot.app/Contents/MacOS/Godot
|
cp bin/godot.macos.editor.universal out/editor/Godot.app/Contents/MacOS/Godot
|
||||||
chmod +x 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/
|
ls out/editor/
|
||||||
|
|
||||||
- name: Upload editor bundle
|
- name: Upload editor bundle
|
||||||
|
|
Loading…
Reference in New Issue