Skip to content

update

update #2

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 }}