-
-
Notifications
You must be signed in to change notification settings - Fork 100
58 lines (48 loc) · 1.69 KB
/
ci.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
# CI for pull requests
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle?learn=continuous_integration&learnProduct=actions
# Using gradle-build-action. See https://github.com/gradle/gradle-build-action
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
flavour: [
assembleOculusvrArm64GeckoMetaStore,
assembleHvrArm64GeckoGeneric,
assembleHvrArm64GeckoAppInChina,
assemblePicoxrArm64GeckoGeneric,
assembleLynxArm64GeckoGeneric,
assembleSpacesArm64GeckoGeneric,
assembleAospX86_64GeckoGeneric
]
steps:
- name: Checkout Wolvic
uses: actions/checkout@v3
with:
submodules: 'true'
# Inspired by https://stackoverflow.com/questions/60679609/github-action-to-simply-cat-a-file-to-an-output
- name: Read wolvic third parties SHA
run: echo "third_party_sha=$(cat third_party_hash)" >> $GITHUB_ENV
- name: Checkout third parties
uses: actions/checkout@v3
with:
ref: ${{ env.third_party_sha }}
repository: Igalia/wolvic-third-parties
token: ${{ secrets.THIRD_PARTY_PAT }}
submodules: 'true'
path: 'third_party'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.3.2
- name: Build ${{ matrix.flavour }} Flavour
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ matrix.flavour }}