From c8096d46682aa399b5131ef52241e1b6e789ae85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 20 Nov 2023 23:23:17 +0100 Subject: [PATCH 1/3] CI: Install Android NDK r23c explicitly It has just been removed from the Ubuntu 20.04 default install, breaking our CI setup. Also, sets Emscripten version to 3.1.39, as done upstream. Newer versions actually break dynamic library support. (cherry picked from commit eea33b413361ef023cddfaa03d9f5acb60538006) --- .github/workflows/ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f60dbf14..1df445ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,8 @@ jobs: platform: android artifact-name: godot-cpp-android-arm64-release artifact-path: bin/libgodot-cpp.android.template_release.arm64.a - flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 + flags: arch=arm64 + run-tests: false cache-name: android-arm64 - name: 🍏 iOS (arm64) @@ -73,6 +74,8 @@ jobs: env: SCONS_CACHE: ${{ github.workspace }}/.scons-cache/ + EM_VERSION: 3.1.39 + EM_CACHE_FOLDER: "emsdk-cache" steps: - name: Checkout @@ -91,15 +94,19 @@ jobs: with: python-version: '3.x' - - name: Linux dependencies - if: ${{ matrix.platform == 'linux' }} - run: | - sudo apt-get update -qq - sudo apt-get install -qqq build-essential pkg-config + - name: Android dependencies + if: ${{ matrix.platform == 'android' }} + uses: nttld/setup-ndk@v1 + with: + ndk-version: r23c + link-to-sdk: true - - name: Install scons - run: | - python -m pip install scons==4.0.0 + - name: Web dependencies + if: ${{ matrix.platform == 'web' }} + uses: mymindstorm/setup-emsdk@v12 + with: + version: ${{env.EM_VERSION}} + actions-cache-folder: ${{env.EM_CACHE_FOLDER}} - name: Setup MinGW for Windows/MinGW build if: ${{ matrix.platform == 'windows' && matrix.flags == 'use_mingw=yes' }} @@ -107,6 +114,10 @@ jobs: with: version: 12.2.0 + - name: Install scons + run: | + python -m pip install scons==4.0.0 + - name: Generate godot-cpp sources only run: | scons platform=${{ matrix.platform }} build_library=no ${{ matrix.flags }} From 597ae98f441fed960ff9436729a586c05a55d9fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:10:15 +0000 Subject: [PATCH 2/3] Bump mymindstorm/setup-emsdk from 12 to 13 Bumps [mymindstorm/setup-emsdk](https://github.com/mymindstorm/setup-emsdk) from 12 to 13. - [Release notes](https://github.com/mymindstorm/setup-emsdk/releases) - [Commits](https://github.com/mymindstorm/setup-emsdk/compare/v12...v13) --- updated-dependencies: - dependency-name: mymindstorm/setup-emsdk dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] (cherry picked from commit 78bf5a42edae13abcce2c413a3000085c545a11f) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1df445ef..268105fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: - name: Web dependencies if: ${{ matrix.platform == 'web' }} - uses: mymindstorm/setup-emsdk@v12 + uses: mymindstorm/setup-emsdk@v13 with: version: ${{env.EM_VERSION}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}} From 469d65d95194faf3c5e81c23941ca95a82364d61 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 18 Jun 2024 12:44:48 +0200 Subject: [PATCH 3/3] [CI] Update macOS workers to macos-latest GitHub actions no longer allow `macos-11` runners (cherry picked from commit 2dd8917508ea9e72b7c0c98774ad1b7df11f690a) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 268105fb..100bc4b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: cache-name: windows-x86_64-mingw - name: 🍎 macOS (universal) - os: macos-11 + os: macos-latest platform: macos artifact-name: godot-cpp-macos-universal-release artifact-path: bin/libgodot-cpp.macos.template_release.universal.a @@ -65,7 +65,7 @@ jobs: cache-name: android-arm64 - name: 🍏 iOS (arm64) - os: macos-11 + os: macos-latest platform: ios artifact-name: godot-cpp-ios-arm64-release artifact-path: bin/libgodot-cpp.ios.template_release.arm64.a