1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

[CI] Change names of artifacts, file paths and generate Linux ARM64 & ARM32 builds in release.yml

This commit is contained in:
Emmanouil Papadeas 2024-05-01 19:54:44 +03:00
parent 74abc30f30
commit 3278e5c4b2
3 changed files with 117 additions and 109 deletions

View file

@ -41,19 +41,19 @@ jobs:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/windows-64bit ~/.local/share/godot/export_templates
mkdir -v -p build/${EXPORT_NAME}-Windows-64bit ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Windows Build 🔧
run: godot --headless -v --export-release "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe
run: godot --headless -v --export-release "Windows Desktop 64-bit" ./build/${EXPORT_NAME}-Windows-64bit/$EXPORT_NAME.exe
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/windows-64bit
rm ./build/windows-64bit/pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Windows-64bit
rm ./build/${EXPORT_NAME}-Windows-64bit/pixelorama_data/.gdignore
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v4
with:
name: Windows-64bit
path: ./build/windows-64bit/
name: ${EXPORT_NAME}-Windows-64bit
path: ./build/${EXPORT_NAME}-Windows-64bit/
retention-days: 14
export-linux:
@ -68,27 +68,27 @@ jobs:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/linux-64bit ~/.local/share/godot/export_templates
mkdir -v -p build/${EXPORT_NAME}-Linux-64bit ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Linux Build 🔧
run: |
godot --headless -v --export-release "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64
godot --headless -v --export-release "Linux/X11 64-bit" ./build/${EXPORT_NAME}-Linux-64bit/$EXPORT_NAME.x86_64
- name: Give execute permission ☑️
run: |
chmod +x ./build/linux-64bit/$EXPORT_NAME.x86_64
chmod +x ./build/${EXPORT_NAME}-Linux-64bit/$EXPORT_NAME.x86_64
- name: Copy pixelorama_data folder 📁
run: |
rm ./pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/linux-64bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-64bit
- name: Create tar.gz archive 🗜️
run: |
cd build
tar zcvf linux-64bit.tar.gz linux-64bit
tar zcvf ${EXPORT_NAME}-Linux-64bit.tar.gz ${EXPORT_NAME}-Linux-64bit
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v4
with:
name: Linux-64bit
path: ./build/linux-64bit.tar.gz
name: ${EXPORT_NAME}-Linux-64bit
path: ./build/${EXPORT_NAME}-Linux-64bit.tar.gz
retention-days: 14
export-mac:
@ -102,7 +102,7 @@ jobs:
- name: Setup environment 🔧
run: |
export GODOT_VERSION=${GODOT_VERSION}
export EXPORT_NAME=Pixelorama
export EXPORT_NAME=${EXPORT_NAME}
- name: Download and extract export templates 💾
run: |
mkdir -v -p "/Users/runner/Library/Application Support/Godot/export_templates/${GODOT_VERSION}.stable"
@ -119,25 +119,25 @@ jobs:
run: |
chown runner ./Godot.app/Contents/MacOS/Godot
chmod +x ./Godot.app/Contents/MacOS/Godot
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/Pixelorama.zip
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/${EXPORT_NAME}.zip
- name: Make application executable 🔧
run: |
unzip -a ./build/mac/Pixelorama.zip -d ./build/mac
chmod +x ./build/mac/Pixelorama.app/Contents/MacOS/Pixelorama
rm ./build/mac/Pixelorama.zip
unzip -a ./build/mac/${EXPORT_NAME}.zip -d ./build/mac
chmod +x ./build/mac/${EXPORT_NAME}.app/Contents/MacOS/${EXPORT_NAME}
rm ./build/mac/${EXPORT_NAME}.zip
- name: Fix application icon 🖼
run: sips -s format icns ./build/mac/Pixelorama.app/Contents/Resources/icon.icns --out ./build/mac/Pixelorama.app/Contents/Resources/icon.icns
run: sips -s format icns ./build/mac/${EXPORT_NAME}.app/Contents/Resources/icon.icns --out ./build/mac/${EXPORT_NAME}.app/Contents/Resources/icon.icns
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/mac/${EXPORT_NAME}.app/Contents/Resources
rm ./build/mac/${EXPORT_NAME}.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
run: codesign -s - --force --deep ./build/mac/${EXPORT_NAME}.app
- name: Create DMG archive 🔧
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname ${EXPORT_NAME} ./build/mac/${EXPORT_NAME}.dmg
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v4
with:
name: Mac
path: ./build/mac/Pixelorama.dmg
name: ${EXPORT_NAME}-Mac
path: ./build/mac/${EXPORT_NAME}.dmg
retention-days: 14

View file

@ -5,7 +5,7 @@ on:
branches: [ release ]
env:
GODOT_VERSION: 4.1.1
GODOT_VERSION: 4.2.2
EXPORT_NAME: Pixelorama
TAG: v1.0
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
@ -15,7 +15,7 @@ jobs:
name: Windows Export 🗔
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:4.1.1
image: docker://barichello/godot-ci:4.2.2
steps:
- name: Setup WINE, rcedit and NSIS 🍷
run: |
@ -33,34 +33,34 @@ jobs:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/windows-64bit build/windows-32bit ~/.local/share/godot/export_templates
mkdir -v -p build/${EXPORT_NAME}-Windows-64bit build/${EXPORT_NAME}-Windows-32bit ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Windows Build 🔧
run: |
godot --headless -v --export-release "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe
godot --headless -v --export-release "Windows Desktop 32-bit" ./build/windows-32bit/$EXPORT_NAME.exe
godot --headless -v --export-release "Windows Desktop 64-bit" ./build/${EXPORT_NAME}-Windows-64bit/${EXPORT_NAME}.exe
godot --headless -v --export-release "Windows Desktop 32-bit" ./build/${EXPORT_NAME}-Windows-32bit/${EXPORT_NAME}.exe
- name: Copy pixelorama_data folder 📁
run: |
rm ./pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/windows-64bit
cp -R ./pixelorama_data ./build/windows-32bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Windows-64bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Windows-32bit
cp -R ./pixelorama_data ./build
- name: Zip 🗜️
working-directory: ./build
run: |
zip -r Pixelorama.Windows-64bit.zip windows-64bit
zip -r Pixelorama.Windows-32bit.zip windows-32bit
zip -r ${EXPORT_NAME}-Windows-64bit.zip ${EXPORT_NAME}-Windows-64bit
zip -r ${EXPORT_NAME}-Windows-32bit.zip ${EXPORT_NAME}-Windows-32bit
- name: Build installer 🔧
run: |
python3 ./installer/utils/po2nsi.py -i ./installer/pixelorama.nsi -o ./installer/pixelorama_loc.nsi -p ./installer/po -l "English" -v
makensis ./installer/pixelorama_loc.nsi
mkdir ./build/installer
mv ./installer/${EXPORT_NAME}_${TAG}_setup.exe ./build/installer
mv ./installer/${EXPORT_NAME}_${TAG}_setup.exe ./build
- name: Upload Release Assets to itch.io 🎮
run: |
butler push ./build/windows-64bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-64 --userversion ${{env.TAG}}
butler push ./build/windows-32bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-32 --userversion ${{env.TAG}}
butler push ./build/installer ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-installer --userversion ${{env.TAG}}
butler push ./build/${EXPORT_NAME}-Windows-64bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-64 --userversion ${TAG}
butler push ./build/${EXPORT_NAME}-Windows-32bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-32 --userversion ${TAG}
butler push ./build/${EXPORT_NAME}_${TAG}_setup.exe ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-installer --userversion ${TAG}
- name: Upload Release Asset 🚀
uses: svenstaro/upload-release-action@v2
with:
@ -74,7 +74,7 @@ jobs:
name: Linux Export 🐧
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:4.1.1
image: docker://barichello/godot-ci:4.2.2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
@ -82,35 +82,45 @@ jobs:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/linux-64bit build/linux-32bit ~/.local/share/godot/export_templates
mkdir -v -p build/${EXPORT_NAME}-Linux-64bit build/${EXPORT_NAME}-Linux-32bit build/${EXPORT_NAME}-Linux-ARM64 build/${EXPORT_NAME}-Linux-ARM32 ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Linux Build 🔧
run: |
godot --headless -v --export-release "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64
godot --headless -v --export-release "Linux/X11 32-bit" ./build/linux-32bit/$EXPORT_NAME.x86
godot --headless -v --export-release "Linux/X11 64-bit" ./build/${EXPORT_NAME}-Linux-64bit/${EXPORT_NAME}.x86_64
godot --headless -v --export-release "Linux/X11 32-bit" ./build/${EXPORT_NAME}-Linux-32bit/${EXPORT_NAME}.x86
godot --headless -v --export-release "Linux/X11 ARM64" ./build/${EXPORT_NAME}-Linux-ARM64/${EXPORT_NAME}.arm64
godot --headless -v --export-release "Linux/X11 ARM32" ./build/${EXPORT_NAME}-Linux-ARM32/${EXPORT_NAME}.arm32
- name: Give execute permission ☑️
run: |
chmod +x ./build/linux-64bit/$EXPORT_NAME.x86_64
chmod +x ./build/linux-32bit/$EXPORT_NAME.x86
chmod +x ./build/${EXPORT_NAME}-Linux-64bit/${EXPORT_NAME}.x86_64
chmod +x ./build/${EXPORT_NAME}-Linux-32bit/${EXPORT_NAME}.x86
chmod +x ./build/${EXPORT_NAME}-Linux-ARM64/${EXPORT_NAME}.arm64
chmod +x ./build/${EXPORT_NAME}-Linux-ARM32/${EXPORT_NAME}.arm32
- name: Copy pixelorama_data folder 📁
run: |
rm ./pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/linux-64bit
cp -R ./pixelorama_data ./build/linux-32bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-64bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-32bit
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-ARM64
cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-ARM32
- name: Create tar.gz archive 🗜️
run: |
cd build
tar zcvf Pixelorama.Linux-64bit.tar.gz linux-64bit
tar zcvf Pixelorama.Linux-32bit.tar.gz linux-32bit
tar zcvf ${EXPORT_NAME}-Linux-64bit.tar.gz ${EXPORT_NAME}-Linux-64bit
tar zcvf ${EXPORT_NAME}-Linux-32bit.tar.gz ${EXPORT_NAME}-Linux-32bit
tar zcvf ${EXPORT_NAME}-Linux-ARM64.tar.gz ${EXPORT_NAME}-Linux-ARM64
tar zcvf ${EXPORT_NAME}-Linux-ARM32.tar.gz ${EXPORT_NAME}-Linux-ARM32
- name: Upload Release Assets to itch.io 🎮
run: |
butler push ./build/Pixelorama.Linux-64bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-64 --userversion ${{env.TAG}}
butler push ./build/Pixelorama.Linux-32bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-32 --userversion ${{env.TAG}}
butler push ./build/${{env.EXPORT_NAME}}-Linux-64bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-x86_64 --userversion ${{env.TAG}}
butler push ./build/${{env.EXPORT_NAME}}-Linux-32bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-x86 --userversion ${{env.TAG}}
butler push ./build/${{env.EXPORT_NAME}}-Linux-ARM64.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-arm64 --userversion ${{env.TAG}}
butler push ./build/${{env.EXPORT_NAME}}-Linux-ARM32.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-arm32 --userversion ${{env.TAG}}
- name: Upload Release Asset 🚀
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/Pixelorama.Linux-*.tar.gz
file: ./build/${{env.EXPORT_NAME}}-Linux-*.tar.gz
tag: ${{env.TAG}}
overwrite: true
file_glob: true
@ -143,34 +153,33 @@ jobs:
run: |
chown runner ./Godot.app/Contents/MacOS/Godot
chmod +x ./Godot.app/Contents/MacOS/Godot
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/Pixelorama.zip
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/${EXPORT_NAME}.zip
- name: Make application executable 🔧
run: |
unzip -a ./build/mac/Pixelorama.zip -d ./build/mac
chmod +x ./build/mac/Pixelorama.app/Contents/MacOS/Pixelorama
rm ./build/mac/Pixelorama.zip
unzip -a ./build/mac/${EXPORT_NAME}.zip -d ./build/mac
chmod +x ./build/mac/${EXPORT_NAME}.app/Contents/MacOS/${EXPORT_NAME}
rm ./build/mac/${EXPORT_NAME}.zip
- name: Fix application icon 🖼
run: sips -s format icns ./build/mac/Pixelorama.app/Contents/Resources/icon.icns --out ./build/mac/Pixelorama.app/Contents/Resources/icon.icns
run: sips -s format icns ./build/mac/${EXPORT_NAME}.app/Contents/Resources/icon.icns --out ./build/mac/${EXPORT_NAME}.app/Contents/Resources/icon.icns
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/mac/${EXPORT_NAME}.app/Contents/Resources
rm ./build/mac/${EXPORT_NAME}.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
run: codesign -s - --force --deep ./build/mac/${EXPORT_NAME}.app
- name: Create DMG archive 🔧
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname ${EXPORT_NAME} ./build/mac/${EXPORT_NAME}-Mac.dmg
- name: Upload Release Assets to itch.io 🎮
run: |
curl -L -o butler.zip https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
unzip butler.zip
chmod +x butler
./butler push ./build/mac/Pixelorama.dmg ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:mac --userversion ${{env.TAG}}
./butler push ./build/mac/${{env.EXPORT_NAME}}-Mac.dmg ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:mac --userversion ${{env.TAG}}
- name: Upload Release Asset 🚀
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/mac/Pixelorama.dmg
asset_name: ${{env.EXPORT_NAME}}[Mac].dmg
file: ./build/mac/${{env.EXPORT_NAME}}-Mac.dmg
tag: ${{env.TAG}}
overwrite: true
@ -178,7 +187,7 @@ jobs:
name: Web Export 🌐
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:4.1.1
image: docker://barichello/godot-ci:4.2.2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

View file

@ -6,7 +6,7 @@
; Helper variables so that we don't change 20 instances of the version for every update
!define APPNAME "Pixelorama"
!define APPVERSION "v0.11.2"
!define APPVERSION "v1.0"
!define COMPANYNAME "Orama Interactive"
@ -105,11 +105,11 @@
; Copy all files to install directory
${If} ${RunningX64}
File "..\build\windows-64bit\pixelorama.exe"
File "..\build\windows-64bit\pixelorama.pck"
File "..\build\${APPNAME}-Windows-64bit\${APPNAME}.exe"
File "..\build\${APPNAME}-Windows-64bit\${APPNAME}.pck"
${Else}
File "..\build\windows-32bit\pixelorama.exe"
File "..\build\windows-32bit\pixelorama.pck"
File "..\build\${APPNAME}-Windows-32bit\${APPNAME}.exe"
File "..\build\${APPNAME}-Windows-32bit\${APPNAME}.pck"
${EndIf}
File "..\assets\graphics\icons\pxo.ico"
@ -171,7 +171,7 @@
Section /o "$(SecDesktop)" SecDesktop ; Create Desktop shortcut
; Create shortcut for app on desktop
CreateShortCut "$DESKTOP\${APPNAME} ${APPVERSION}.lnk" "$INSTDIR\Pixelorama.exe"
CreateShortCut "$DESKTOP\${APPNAME} ${APPVERSION}.lnk" "$INSTDIR\${APPNAME}.exe"
SectionEnd
@ -192,8 +192,8 @@
; Delete all files and folders created by the installer
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\Pixelorama.exe"
Delete "$INSTDIR\Pixelorama.pck"
Delete "$INSTDIR\${APPNAME}.exe"
Delete "$INSTDIR\${APPNAME}.pck"
Delete "$INSTDIR\pxo.ico"
RMDir /r "$INSTDIR\pixelorama_data"
RMDir "$INSTDIR"
@ -261,4 +261,3 @@
!insertmacro MUI_UNFUNCTION_DESCRIPTION_END