Skip to content

Commit 21c1c81

Browse files
committed
Update Github build workflow
- Fix Android build - Use universal MacOS architecture
1 parent 3baf593 commit 21c1c81

1 file changed

Lines changed: 26 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
name: Builds
33
on:
44
push:
5-
branches: [ "master", "godot_4.2" ]
5+
branches: [ "master" ]
66
pull_request:
7-
branches: [ "master", "godot_4.2" ]
7+
branches: [ "master" ]
88

99
jobs:
1010
build:
@@ -38,25 +38,25 @@ jobs:
3838
target: template_release
3939
platform: windows
4040
arch: x86_64
41+
# Untested
4142
- identifier: android-release
4243
name: Android Release
4344
runner: ubuntu-20.04
4445
target: template_release
4546
platform: android
4647
arch: arm64
47-
# Untested
4848
- identifier: macos-debug
49-
name: MacOS Debug
49+
name: macOS (universal) Debug
5050
runner: macos-latest
5151
target: template_debug
5252
platform: macos
53-
arch: x86_64
53+
arch: universal
5454
- identifier: macos-release
55-
name: MacOS Release
55+
name: macOS (universal) Release
5656
runner: macos-latest
5757
target: template_release
5858
platform: macos
59-
arch: x86_64
59+
arch: universal
6060

6161
steps:
6262
- name: (Windows) Install mingw64
@@ -67,21 +67,30 @@ jobs:
6767
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
6868
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
6969
70-
- name: (Android) Set up Java 11
70+
- name: (Android) Install JDK 17
7171
if: ${{ startsWith(matrix.identifier, 'android-') }}
72-
uses: actions/setup-java@v1
72+
uses: actions/setup-java@v3
7373
with:
74-
java-version: 11
74+
java-version: 17
75+
distribution: temurin
7576

76-
- name: (Android) Set up Android SDK
77+
- name: (Android) Install Android SDK
7778
if: ${{ startsWith(matrix.identifier, 'android-') }}
78-
uses: android-actions/setup-android@v2
79+
uses: android-actions/setup-android@v3
7980

80-
- name: (Android) Install Android Tools
81-
if: ${{ startsWith(matrix.identifier, 'android-') }}
82-
shell: sh
83-
run: |
84-
"$ANDROID_SDK_ROOT"/cmdline-tools/latest/bin/sdkmanager --sdk_root="$ANDROID_SDK_ROOT" "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;21.4.7075529"
81+
# From Godot docs, might not be necessary.
82+
#- name: (Android) Install Android Tools
83+
# if: ${{ startsWith(matrix.identifier, 'android-') }}
84+
# shell: sh
85+
# run: |
86+
# "$ANDROID_SDK_ROOT"/cmdline-tools/latest/bin/sdkmanager --sdk_root="$ANDROID_SDK_ROOT" "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404"
87+
88+
- name: (Android) Install NDK r23c
89+
if: ${{ matrix.platform == 'android' }}
90+
uses: nttld/setup-ndk@v1
91+
with:
92+
ndk-version: r23c
93+
link-to-sdk: true
8594

8695
- name: Set up Python
8796
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)