summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/android-build.yml79
-rw-r--r--.github/workflows/verify.yml4
2 files changed, 81 insertions, 2 deletions
diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml
new file mode 100644
index 000000000..e639e965a
--- /dev/null
+++ b/.github/workflows/android-build.yml
@@ -0,0 +1,79 @@
1# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-3.0-or-later
3
4name: 'yuzu-android-build'
5
6on:
7 push:
8 tags: [ "*" ]
9
10jobs:
11 android:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v3
15 with:
16 submodules: recursive
17 fetch-depth: 0
18 - name: Set up JDK 17
19 uses: actions/setup-java@v3
20 with:
21 java-version: '17'
22 distribution: 'temurin'
23 - name: Set up cache
24 uses: actions/cache@v3
25 with:
26 path: |
27 ~/.gradle/caches
28 ~/.gradle/wrapper
29 ~/.ccache
30 key: ${{ runner.os }}-android-${{ github.sha }}
31 restore-keys: |
32 ${{ runner.os }}-android-
33 - name: Query tag name
34 uses: olegtarasov/get-tag@v2.1.2
35 id: tagName
36 - name: Install dependencies
37 run: |
38 sudo apt-get update
39 sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
40 - name: Build
41 run: ./.ci/scripts/android/build.sh
42 - name: Copy and sign artifacts
43 env:
44 ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
45 ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
46 ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
47 run: ./.ci/scripts/android/upload.sh
48 - name: Upload
49 uses: actions/upload-artifact@v3
50 with:
51 name: android
52 path: artifacts/
53 # release steps
54 release-android:
55 runs-on: ubuntu-latest
56 needs: [android]
57 if: ${{ startsWith(github.ref, 'refs/tags/') }}
58 permissions:
59 contents: write
60 steps:
61 - uses: actions/download-artifact@v3
62 - name: Query tag name
63 uses: olegtarasov/get-tag@v2.1.2
64 id: tagName
65 - name: Create release
66 uses: actions/create-release@v1
67 env:
68 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69 with:
70 tag_name: ${{ steps.tagName.outputs.tag }}
71 release_name: ${{ steps.tagName.outputs.tag }}
72 draft: false
73 prerelease: false
74 - name: Upload artifacts
75 uses: alexellis/upload-assets@0.2.3
76 env:
77 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78 with:
79 asset_paths: '["./**/*.apk","./**/*.aab"]'
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml
index bd4141f56..b5d338199 100644
--- a/.github/workflows/verify.yml
+++ b/.github/workflows/verify.yml
@@ -129,11 +129,12 @@ jobs:
129 - uses: actions/checkout@v3 129 - uses: actions/checkout@v3
130 with: 130 with:
131 submodules: recursive 131 submodules: recursive
132 fetch-depth: 0
132 - name: set up JDK 17 133 - name: set up JDK 17
133 uses: actions/setup-java@v3 134 uses: actions/setup-java@v3
134 with: 135 with:
135 java-version: '17' 136 java-version: '17'
136 distribution: 'adopt' 137 distribution: 'temurin'
137 - name: Set up cache 138 - name: Set up cache
138 uses: actions/cache@v3 139 uses: actions/cache@v3
139 with: 140 with:
@@ -151,7 +152,6 @@ jobs:
151 run: | 152 run: |
152 sudo apt-get update 153 sudo apt-get update
153 sudo apt-get install -y ccache apksigner glslang-dev glslang-tools 154 sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
154 git -C ./externals/vcpkg/ fetch --all --unshallow
155 - name: Build 155 - name: Build
156 run: ./.ci/scripts/android/build.sh 156 run: ./.ci/scripts/android/build.sh
157 - name: Copy and sign artifacts 157 - name: Copy and sign artifacts