-
Notifications
You must be signed in to change notification settings - Fork 38
38 lines (34 loc) · 1.2 KB
/
android-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
name: Android build
on:
pull_request:
# Cancel previous runs if a more recent commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
permissions: read-all
jobs:
android-build:
name: Check Android build with gradle
runs-on: "ubuntu-20.04"
strategy:
fail-fast: true
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Vulkan SDK
run: |
wget -q https://sdk.lunarg.com/sdk/download/1.3.268.0/linux/vulkansdk-linux-x86_64-1.3.268.0.tar.xz
if ! echo "d23343736247828ff5b3b6b1b7fd83a72b5df1a54b2527ae3663cebdfee75842 vulkansdk-linux-x86_64-1.3.268.0.tar.xz" | sha256sum -c --status; then
echo "Invalid SHA256 for VulkanSDK's binary. Aborting."
exit 1
fi
mkdir "${HOME}/vulkan-sdk"
tar -xf vulkansdk-linux-x86_64-1.3.268.0.tar.xz -C "${HOME}/vulkan-sdk"
echo "VULKAN_SDK=${HOME}/vulkan-sdk/1.3.268.0/x86_64" >> $GITHUB_ENV
- name: Build all projects
run: |
./gradlew buildRelease