-
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (47 loc) · 1.41 KB
/
extension-build-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build Extension - Android
on:
workflow_call:
inputs:
git-base-ref:
type: string
default: 'main'
# Make sure jobs cannot overlap.
concurrency:
group: build-${{ github.ref }}-android
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
arch: [ arm32, arm64, x86_32, x86_64 ]
name: Compile and upload Android (${{ matrix.arch }}) version
runs-on: ubuntu-latest
env:
GIT_BASE_REF: ${{ inputs.git-base-ref }}
SCONS_PLATFORM: android
SCONS_PLATFORM_SUFFIX: ".${{ matrix.arch }}"
steps:
- uses: actions/checkout@v4
with:
submodules: true
# Set up prerequisites.
- name: Set up build cache
uses: ./.github/actions/setup-cache
continue-on-error: true
- name: Install build dependencies
uses: ./.github/actions/install-deps
# Build all targets.
- name: Build GDSiON (release, ${{ matrix.arch }})
uses: ./.github/actions/build-extension
with:
target: template_release
sconsflags: arch=${{ matrix.arch }}
- name: Build GDSiON (debug, ${{ matrix.arch }})
uses: ./.github/actions/build-extension
with:
target: template_debug
sconsflags: arch=${{ matrix.arch }}
# Upload the results.
- name: Upload release
uses: ./.github/actions/upload-extension