59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Build Android
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build APK
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Setup java
|
|
uses: https://github.com/actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '21'
|
|
|
|
- name: Install Bun
|
|
run: |
|
|
curl -fsSL https://bun.sh/install | bash
|
|
echo "$HOME/.bun/bin" >> $GITHUB_PATH
|
|
|
|
- name: Verify installations
|
|
run: |
|
|
echo "PATH: $PATH"
|
|
node --version
|
|
which bun || echo "Bun not found in PATH"
|
|
bun --version || echo "Bun command failed"
|
|
|
|
- name: Install app dependencies
|
|
working-directory: ./dust
|
|
run: ~/.bun/bin/bun install
|
|
|
|
- name: Build project app
|
|
working-directory: ./dust
|
|
run: ~/.bun/bin/bun run build-prod
|
|
|
|
- name: Capacitor sync
|
|
working-directory: ./dust
|
|
run: ~/.bun/bin/bunx cap sync
|
|
|
|
- name: Build app bundle
|
|
working-directory: ./dust
|
|
run: cd android && ./gradlew bundle
|
|
|
|
- name: Upload release bundle
|
|
working-directory: ./dust
|
|
run: ls android/app/build/outputs/bundle/release/
|