-
Notifications
You must be signed in to change notification settings - Fork 40
64 lines (54 loc) · 1.71 KB
/
merge.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
61
62
63
64
name: Merge flow
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
name: Build '${{ matrix.project }}'
strategy:
fail-fast: false
matrix:
project: [ linux-amd64, linux-arm32v7, linux-arm64 ]
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Allow multiarch
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build VM & Launcher
run: |
docker run -v ${PWD}:/sources -t totalcross/${{ matrix.project }}:v1.0.0 bash -c "cmake /sources/TotalCrossVM -DCMAKE_BUILD_TYPE=Release -G Ninja && ninja"
build-sdk-and-android:
name: Build `${{ matrix.project.name }}`
runs-on: ubuntu-18.04
container:
image: docker://fabernovel/android:api-29-ndk-v1.2.0
strategy:
fail-fast: false
matrix:
project:
- name: SDK
command: ./gradlew dist -x test --stacktrace
directory: TotalCrossSDK
- name: Android
command: ./gradlew assembleRelease -x test --stacktrace
directory: TotalCrossVM/android
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build ${{ matrix.project.name }}
working-directory: ${{ matrix.project.directory }}
run: ${{ matrix.project.command }}