@@ -2,9 +2,9 @@ name: macOS Build
22
33on :
44 push :
5- branches : [ "master" ]
5+ branches : [ "master", "better_workflow" ]
66 pull_request :
7- branches : [ "master" ]
7+ branches : [ "master", "better_workflow" ]
88
99permissions :
1010 contents : read
@@ -150,28 +150,18 @@ jobs:
150150 ndk-version : ${{ matrix.ndk }}
151151 link-to-sdk : true
152152 add-to-path : true
153-
154- - name : Install build tools (Ubuntu)
155- if : runner.os == 'Linux'
156- run : sudo apt-get update && sudo apt-get install -y ninja-build
157-
158- - name : Install build tools (macOS)
159- if : runner.os == 'macOS'
153+
154+ - name : Install build tools
160155 run : brew install ninja
161156
162- - name : Install build tools (Windows)
163- if : runner.os == 'Windows'
164- run : choco install ninja
165-
166157 - name : Setup JDK 17
167158 uses : actions/setup-java@v3
168159 with :
169160 java-version : ' 17'
170161 distribution : ' temurin'
171162 cache : gradle
172163
173- - name : Grant execute permission for scripts (Unix)
174- if : runner.os != 'Windows'
164+ - name : Grant execute permission for scripts
175165 run : chmod +x gradlew tasks.sh
176166
177167 - name : Configure build parameters
@@ -214,21 +204,11 @@ jobs:
214204 - name : Setup project (ndk-build mode)
215205 if : matrix.build-system == 'ndk-build'
216206 shell : bash
217- run : |
218- if [ "${{ runner.os }}" == "Windows" ]; then
219- bash tasks.sh --setup-project
220- else
221- ./tasks.sh --setup-project
222- fi
207+ run : ./tasks.sh --setup-project
223208
224209 - name : Build APK
225210 shell : bash
226- run : |
227- if [ "${{ runner.os }}" == "Windows" ]; then
228- bash tasks.sh --release $BUILD_SYSTEM_FLAG $FFMPEG_FLAG $PAGE_SIZE_FLAG --build
229- else
230- ./tasks.sh --release $BUILD_SYSTEM_FLAG $FFMPEG_FLAG $PAGE_SIZE_FLAG --build
231- fi
211+ run : ./tasks.sh --release $BUILD_SYSTEM_FLAG $FFMPEG_FLAG $PAGE_SIZE_FLAG --build
232212
233213 - name : Find and rename APK
234214 shell : bash
0 commit comments