-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (52 loc) · 1.42 KB
/
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
name: Android CI
on:
pull_request:
branches:
- main
- dev
push:
branches:
- main
- 'releases/**'
paths:
- '.github/workflows/android.yml'
- 'src/**'
- 'assets/shaders/**'
- '*.sh'
- '*.bat'
- '**/CMakeLists.txt'
jobs:
build:
runs-on: ubuntu-22.04
env:
SDK_VERSION: 1.3.280
steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: actions/checkout@v4
- name: Restore cached Primes
id: cache-primes-restore
uses: actions/cache/restore@v4
with:
path: |
build/vcpkg.android
key: ${{ runner.os }}-primes
- name: Compile vcpkg dependencies
run: ./vcpkg_android.sh
- name: Save Primes
id: cache-primes-save
uses: actions/cache/save@v4
with:
path: |
build/vcpkg.android
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}
- name: Install Dependencies
run: |
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-${SDK_VERSION}-jammy.list http://packages.lunarg.com/vulkan/${SDK_VERSION}/lunarg-vulkan-${SDK_VERSION}-jammy.list
sudo apt-get update
sudo apt-get install vulkan-sdk
- name: Compile gkNextRenderer
run: ./build_android.sh