RetroDECK/.github/workflows/build-gdc.yml
monkeyx-net db5bc4b317 On branch feat/godot-configurator
Changes to be committed:
	modified:   ../../.github/workflows/build-gdc.yml
2024-08-06 01:36:30 +01:00

66 lines
2 KiB
YAML

name: Test GD Config
on:
push:
branches: [ feat/godot-configurator ]
pull_request:
branches: [ feat/godot-configurator ]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-devdesktop
cancel-in-progress: true
env:
GODOT_VERSION: 4.2.2
EXPORT_NAME: GD-Test
TAG: v0.0.5
jobs:
export-linux:
name: Linux Export 🐧
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: tools/configurator
container:
image: docker://barichello/godot-ci:4.2.2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
submodules: true
- name: Setup 💻
run: |
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: Import resources once 📦
continue-on-error: true
run: godot --headless -v --import
- name: Linux Build 🔧
continue-on-error: true
run: |
godot --headless -v --export-release "Linux/X11 64-bit" ~/$EXPORT_NAME.pck
- name: Give execute permission ☑️
run: |
chmod +x ~/$EXPORT_NAME.pck
- name: Create tar.gz archive 🗜️
run: |
cd build
tar zcvf ~/${EXPORT_NAME}-Linux-64bit.tar.gz ~/$EXPORT_NAME.pck
- name: Upload Linux x86_64 Artifact 🚀
uses: actions/upload-artifact@v4
with:
name: ${{env.EXPORT_NAME}}-Linux-64bit
path: ~/${{env.EXPORT_NAME}}-Linux-64bit.tar.gz
retention-days: 14
- name: Upload Release Asset 🚀
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /github/home/GD-Test-*
tag: ${{env.TAG}}
overwrite: true
file_glob: true