deploy other OSes #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy other OSes | |
on: | |
workflow_dispatch: | |
jobs: | |
build-others: | |
# TODO: reusable workflow? | |
strategy: | |
matrix: | |
GODOT_VERSION: ["4.2.2"] | |
runs-on: ubuntu-latest | |
container: | |
image: barichello/godot-ci:${{ matrix.GODOT_VERSION }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Godot build environment | |
run: | | |
mkdir -v -p ~/.local/share/godot/export_templates | |
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable | |
env: | |
GODOT_VERSION: ${{ matrix.GODOT_VERSION }} | |
- name: build macOS | |
run: | | |
mkdir -v -p build/macOS | |
godot -v --headless --export-release "macOS" build/macOS/arena-arena.app.zip | |
# TODO: rcedit? | |
- name: build Windows | |
run: | | |
mkdir -v -p build/windows | |
godot -v --headless --export-release "Windows Desktop" build/windows/arena-arena.exe | |
- name: build Linux/X11 (x86_64, arm64) | |
run: | | |
mkdir -v -p build/linux | |
godot -v --headless --export-release "Linux/X11 (x86_64)" build/linux/arena-arena.x86_64 | |
godot -v --headless --export-release "Linux/X11 (arm64)" build/linux/arena-arena.arm64 | |
# Upload | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: build | |
retention-days: 1 |