From 8a8be87279db46c5d50aedcb51b0ef2371c3484d Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Mon, 17 Jul 2023 15:39:41 -0400 Subject: Update to Godot 4.1.1 Stable Release Add bash-based Godot URL environment variable handling to openvic-env action Sets GODOT_LINUX_URL and GODOT_TEMPLATE_URL according to GODOT_BASE_URL, GODOT_VERSION, and GODOT_VERSION_TYPE Handles downloads.tuxfamily.org/godotengine and github.com/godotengine differently Errors if GODOT_LINUX_URL or GODOT_TEMPLATE_URL are not set or if links do not exist Will not override GODOT_LINUX_URL if previously set Will not override GODOT_TEMPLATE_URL if previously set --- .github/workflows/builds.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to '.github/workflows/builds.yml') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index a8fa770..68da880 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -3,10 +3,9 @@ name: Builds on: [push, pull_request] env: - GODOT_DOWNLOAD_URL: https://downloads.tuxfamily.org/godotengine - GODOT_VERSION_PREFIX: Godot_v - GODOT_VERSION_SUFFIX: stable - GODOT_VERSION: 4.1 + GODOT_BASE_DOWNLOAD_URL: https://github.com/godotengine/godot + GODOT_VERSION: 4.1.1 + GODOT_VERSION_TYPE: stable OPENVIC_BASE_BRANCH: master concurrency: @@ -15,7 +14,7 @@ concurrency: jobs: build: - runs-on: ${{matrix.os}} + runs-on: ${{matrix.os}} name: ${{matrix.name}} permissions: write-all strategy: @@ -62,7 +61,6 @@ jobs: arch: x86_64 steps: - - name: Checkout project uses: actions/checkout@v3.3.0 with: @@ -80,7 +78,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.x" - name: Set up SCons shell: bash @@ -125,9 +123,9 @@ jobs: - name: Archive Release uses: thedoctor0/zip-release@0.7.1 with: - type: 'zip' - filename: '../../../libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip' - directory: '${{ github.workspace }}/game/bin/openvic/' + type: "zip" + filename: "../../../libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip" + directory: "${{ github.workspace }}/game/bin/openvic/" if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - name: Create and upload asset @@ -146,7 +144,6 @@ jobs: name: Peform Godot Debug Checks steps: - - name: Checkout project uses: actions/checkout@v3.3.0 @@ -163,8 +160,8 @@ jobs: id: export_game uses: Spartan322/godot-export@master with: - godot_executable_download_url: ${{env.GODOT_DOWNLOAD_URL}}/${{env.GODOT_VERSION}}/${{env.GODOT_VERSION_PREFIX}}${{env.GODOT_VERSION}}-${{env.GODOT_VERSION_SUFFIX}}_linux.x86_64.zip - godot_export_templates_download_url: ${{env.GODOT_DOWNLOAD_URL}}/${{env.GODOT_VERSION}}/${{env.GODOT_VERSION_PREFIX}}${{env.GODOT_VERSION}}-${{env.GODOT_VERSION_SUFFIX}}_export_templates.tpz + godot_executable_download_url: ${{env.GODOT_LINUX_URL}} + godot_export_templates_download_url: ${{env.GODOT_TEMPLATE_URL}} relative_project_path: ./game export_as_pack: true export_debug: true @@ -180,7 +177,6 @@ jobs: path: | ./game/export/${{ github.event.repository.name }}.pck - export: runs-on: ubuntu-latest needs: [build] @@ -188,7 +184,6 @@ jobs: name: Export steps: - - name: Checkout project uses: actions/checkout@v3.3.0 @@ -212,8 +207,8 @@ jobs: id: export_game uses: Spartan322/godot-export@master with: - godot_executable_download_url: ${{env.GODOT_DOWNLOAD_URL}}/${{env.GODOT_VERSION}}/${{env.GODOT_VERSION_PREFIX}}${{env.GODOT_VERSION}}-${{env.GODOT_VERSION_SUFFIX}}_linux.x86_64.zip - godot_export_templates_download_url: ${{env.GODOT_DOWNLOAD_URL}}/${{env.GODOT_VERSION}}/${{env.GODOT_VERSION_PREFIX}}${{env.GODOT_VERSION}}-${{env.GODOT_VERSION_SUFFIX}}_export_templates.tpz + godot_executable_download_url: ${{env.GODOT_LINUX_URL}} + godot_export_templates_download_url: ${{env.GODOT_TEMPLATE_URL}} relative_project_path: ./game archive_output: true cache: true -- cgit v1.2.3-56-ga3b1