2024-08-05 22:21:41 +00:00
|
|
|
name: Test GD Config
|
2024-08-05 18:25:25 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-08-05 19:23:42 +00:00
|
|
|
branches: [ feat/godot-configurator ]
|
2024-08-05 22:21:41 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ feat/godot-configurator ]
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-devdesktop
|
|
|
|
cancel-in-progress: true
|
2024-08-05 18:25:25 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
GODOT_VERSION: 4.2.2
|
2024-08-05 22:21:41 +00:00
|
|
|
EXPORT_NAME: GD-Test
|
|
|
|
working-directory: tools/configurator
|
2024-08-05 18:25:25 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
export-linux:
|
|
|
|
name: Linux Export 🐧
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: docker://barichello/godot-ci:4.2.2
|
|
|
|
steps:
|
|
|
|
- name: Checkout 🛎️
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Setup 💻
|
|
|
|
run: |
|
2024-08-05 22:21:41 +00:00
|
|
|
mkdir -v -p build/${EXPORT_NAME}-Linux-64bit ~/.local/share/godot/export_templates
|
2024-08-05 18:25:25 +00:00
|
|
|
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 🔧
|
|
|
|
run: |
|
2024-08-05 22:21:41 +00:00
|
|
|
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/${EXPORT_NAME}-Linux-64bit/$EXPORT_NAME.x86_64
|
2024-08-05 18:25:25 +00:00
|
|
|
- name: Create tar.gz archive 🗜️
|
|
|
|
run: |
|
2024-08-05 22:21:41 +00:00
|
|
|
cd build
|
|
|
|
tar zcvf ${EXPORT_NAME}-Linux-64bit.tar.gz ${EXPORT_NAME}-Linux-64bit
|
|
|
|
- name: Upload Linux x86_64 Artifact 🚀
|
|
|
|
uses: actions/upload-artifact@v4
|
2024-08-05 18:25:25 +00:00
|
|
|
with:
|
2024-08-05 22:21:41 +00:00
|
|
|
name: ${{env.EXPORT_NAME}}-Linux-64bit
|
|
|
|
path: ./build/${{env.EXPORT_NAME}}-Linux-64bit.tar.gz
|
|
|
|
retention-days: 14
|