Skip to content

Build bootstraps

Build bootstraps #97

name: Build bootstraps
on:
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
env:
ANDROID_HOME: "/opt/termux/android-sdk"
NDK: "/opt/termux/android-ndk"
strategy:
matrix:
target_arch: [aarch64, arm, i686, x86_64]
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-codeql: 'true'
remove-haskell: 'true'
remove-android: 'true'
root-reserve-mb: '32768'
remove-docker-images: 'true'
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Get packages from termux-packages
uses: actions/checkout@v3
with:
repository: gouravkhunger/termux-packages
ref: 20070/fix-glib
path: termux-packages
fetch-depth: 1
- name: Setup environment
run: |
# Use custom packaging properties for JekyllEx
# rm termux-packages/scripts/properties.sh termux-packages/scripts/build-bootstraps.sh
mv termux-packages/* .
rm -rf termux-packages
# mv properties.sh build-bootstraps.sh scripts/
- name: Create bootstrap archive
if: always()
run: |
./scripts/run-docker.sh ./clean.sh
# ./scripts/run-docker.sh ./scripts/build-bootstraps.sh --android10 --architectures ${{ matrix.target_arch }}
./scripts/run-docker.sh ./build-package.sh glib -F -a ${{ matrix.target_arch }}
- name: Store bootstrap
if: always()
uses: actions/upload-artifact@v3
with:
name: bootstrap-${{ matrix.target_arch }}
path: "*.zip"