-
Notifications
You must be signed in to change notification settings - Fork 24
48 lines (41 loc) · 1.26 KB
/
android-cts-build.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
# Copyright 2021-2024, Collabora, Ltd.
# SPDX-License-Identifier: CC0-1.0
name: Android OpenXR-CTS - Android Build
on:
workflow_call:
inputs:
gradleTask:
description: "Gradle task to run"
type: string
required: true
gradleOutputDir:
description: "Where do we look for the output?"
type: string
required: true
jobs:
# CTS
build-android-cts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
fetch-tags: "${{ inputs.gradleTask != 'assembleRelease' }}"
fetch-depth: "${{ github.event.release && '0' || '1'}}"
- name: Get modern CMake and Ninja
uses: lukka/[email protected]
- name: set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "temurin"
cache: gradle
# Also performs Gradle wrapper validation
- uses: "gradle/actions/setup-gradle@v4"
- name: "Build with Gradle"
run: "cd src/conformance && ./gradlew ${{ inputs.gradleTask }}"
- name: Upload unsigned artifacts
uses: actions/upload-artifact@v4
with:
name: android-openxr-cts-unsigned
path: ${{ inputs.gradleOutputDir }}