From ca51b19b705eb25417be40a3210815d16736cc77 Mon Sep 17 00:00:00 2001 From: monkeyx-net Date: Mon, 5 Aug 2024 19:25:25 +0100 Subject: [PATCH] On branch feat/godot-configurator Changes to be committed: new file: .github/workflows/build-gdc.yml --- .github/workflows/build-gdc.yml | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/build-gdc.yml diff --git a/.github/workflows/build-gdc.yml b/.github/workflows/build-gdc.yml new file mode 100644 index 00000000..76ceb66a --- /dev/null +++ b/.github/workflows/build-gdc.yml @@ -0,0 +1,52 @@ +name: Stable release builds + +on: + push: + branches: [ release ] + +env: + GODOT_VERSION: 4.2.2 + EXPORT_NAME: RetroDECK-Godot + TAG: v0.005 + #BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} + +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: | + 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: Import resources once 📦 + continue-on-error: true + run: godot --headless -v --import + - name: Linux Build 🔧 + run: | + godot --headless -v --export-release "Linux/X11 32-bit" ./build/${EXPORT_NAME}-Linux-32bit/${EXPORT_NAME}.x86 + - name: Give execute permission ☑️ + run: | + 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/${EXPORT_NAME}-Linux-64bit + - name: Create tar.gz archive 🗜️ + run: | + cd build + tar zcvf ${EXPORT_NAME}-Linux-64bit.tar.gz ${EXPORT_NAME}-Linux-64bit + - name: Upload Release Asset 🚀 + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./build/${{env.EXPORT_NAME}}-Linux-*.tar.gz + tag: ${{env.TAG}} + overwrite: true + file_glob: true