-
Notifications
You must be signed in to change notification settings - Fork 160
37 lines (36 loc) · 1.36 KB
/
windows-android-x86_64.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
name: windows-android-x86_64
on: [push, pull_request]
jobs:
windows-android-x86_64:
runs-on: windows-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
- name: cache-wget
id: cache-wget
uses: actions/cache@v1
with:
path: "wget-install"
key: wget-windows-install
- name: download wget
run: |
mkdir software && cd software
mkdir wget && cd wget
Invoke-WebRequest -Uri https://eternallybored.org/misc/wget/1.21.1/64/wget.exe -OutFile wget.exe > log.txt
cd .. && mkdir android_ndk && cd android_ndk
Invoke-WebRequest -Uri https://dl.google.com/android/repository/android-ndk-r20b-windows-x86_64.zip -OutFile android-ndk-r20b-windows-x86_64.zip > log.txt
- name: compile android x86_64 on windows
run: |
cd /d/a/bolt/bolt/software/android_ndk
unzip -o android-ndk-r20b-windows-x86_64.zip > /dev/null
export ANDROID_NDK_ROOT=${PWD}/android-ndk-r20b
export PATH=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/windows-x86_64/bin:$PATH
export PATH=$PATH:/d/a/bolt/bolt/software/wget
cd /d/a/bolt/bolt
./install.sh --target=android-x86_64
shell: bash