forked from Futuremappermydud/Nya-quest
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a4d141
commit 590361e
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Setup canary ndk" | ||
description: "Sets up canary ndk" | ||
outputs: | ||
ndk-path: | ||
value: ${{ steps.path.outputs.path }} | ||
description: "Output path of the ndk" | ||
cache-hit: | ||
value: ${{ steps.cache.outputs.cache-hit }} | ||
description: "Whether a cache hit occurred for the ndk" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: NDK cache | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${HOME}/android-ndk-r27-canary/ | ||
key: ${{ runner.os }}-ndk-r27-canary | ||
|
||
- name: Download canary ndk | ||
if: ${{ !steps.cache.outputs.cache-hit }} | ||
env: | ||
CANARY_URL: https://github.com/QuestPackageManager/ndk-canary-archive/releases/download/27.0.1/android-ndk-10883340-linux-x86_64.zip | ||
run: wget ${CANARY_URL} -O ${HOME}/ndk.zip | ||
shell: bash | ||
|
||
- name: Unzip ndk | ||
if: ${{ !steps.cache.outputs.cache-hit }} | ||
run: 7z x "${HOME}/ndk.zip" -o"${HOME}/" | ||
shell: bash | ||
|
||
- name: Set output | ||
id: path | ||
shell: bash | ||
run: echo "path=${HOME}/android-ndk-r27-canary" >> ${GITHUB_OUTPUT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters