-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.1 KB
/
build-bootstrap.yaml
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
name: Build bootstrap
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Fix permissions
run: sudo chown -R $USER:$USER /home/runner/work/alpine-linux-bootstrap
- name: Checkout the code
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '2.x'
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.3.6528147" --sdk_root=${ANDROID_SDK_ROOT}
- name: Get android home
run: echo ${ANDROID_HOME}
- name: Build the bootstrap
run: |
mkdir -p ~/Android
ln -s ${ANDROID_HOME} ~/Android/Sdk
sudo chown -R $USER:$USER /home/runner/work/alpine-linux-bootstrap
./generate-bootstraps.sh
working-directory: ./scripts
- name: Create github release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./scripts/build/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}