1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00
Pixelorama/.github/workflows/dev-desktop-builds.yml

121 lines
4.3 KiB
YAML
Raw Normal View History

name: "dev-desktop-builds"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths-ignore:
- "Translations/*"
- "installer/*.pot"
- "installer/po/*"
env:
2020-06-26 13:37:14 +00:00
GODOT_VERSION: 3.2.2
EXPORT_NAME: Pixelorama
jobs:
export-windows:
name: Windows Export 🗔
runs-on: ubuntu-latest
container:
2020-06-26 13:37:14 +00:00
image: docker://barichello/godot-ci:3.2.2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v1
with:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/windows-64bit ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Windows Build 🔧
run: godot -v --export "Windows Desktop 64-bit" ./build/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
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v1
with:
name: Windows-64bit
path: ./build/windows-64bit/
export-linux:
name: Linux Export 🐧
runs-on: ubuntu-latest
container:
2020-06-26 13:37:14 +00:00
image: docker://barichello/godot-ci:3.2.2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v1
with:
submodules: true
- name: Setup 💻
run: |
mkdir -v -p build/linux-64bit ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Linux Build 🔧
run: godot -v --export "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/linux-64bit
rm ./build/linux-64bit/pixelorama_data/.gdignore
- name: Create tar.gz archive 🗜️
run: |
cd build
tar zcvf linux-64bit.tar.gz linux-64bit
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v1
with:
name: Linux-64bit
path: ./build/linux-64bit.tar.gz
export-mac:
name: Mac Export 🍎
2020-08-26 11:51:53 +00:00
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v1
with:
submodules: true
2020-08-26 11:51:53 +00:00
- name: Setup environment 🔧
run: |
2020-08-26 11:51:53 +00:00
export GODOT_VERSION=3.2.2
export EXPORT_NAME=Pixelorama
- name: Download and extract export templates 💾
run: |
mkdir -v -p ~/.local/share/godot/templates/${GODOT_VERSION}.stable
curl -O https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-stable_export_templates.tpz
unzip -a Godot_v${GODOT_VERSION}-stable_export_templates.tpz
mv ./templates/* ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Download Godot headless binary 💾
run: |
curl -O https://huskee.cf/files/Godot_v${GODOT_VERSION}-stable_mac_headless.64.zip
unzip -a Godot_v${GODOT_VERSION}-stable_mac_headless.64.zip
- name: Setup 💻
run: mkdir -v -p ./build/mac
- name: Mac Build 🔧
2020-08-26 11:51:53 +00:00
run: |
chown runner ./Godot
chmod +x ./Godot
./Godot -v --export "Mac OSX" ./build/mac/Pixelorama.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
- 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
- name: Copy pixelorama_data folder 📁
2020-08-26 11:51:53 +00:00
run: |
cp -R ./pixelorama_data ./build/mac
rm ./build/mac/pixelorama_data/.gdignore
2020-08-26 11:51:53 +00:00
- name: Create DMG archive 🔧
run: hdiutil create -size 70m -srcfolder ./build/mac -volname Pixelorama ./build/mac/Pixelorama.dmg
- name: Upload Artifact 🚀
uses: actions/upload-artifact@v1
with:
name: Mac
2020-08-26 11:51:53 +00:00
path: ./build/mac/Pixelorama.dmg