0
0
Fork 0
dust-android-build/.forgejo/workflows/android.yml

60 lines
1.4 KiB
YAML
Raw Normal View History

2025-05-29 12:44:20 -04:00
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"
2025-05-29 12:44:20 -04:00
2025-05-29 17:32:17 -04:00
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
2025-05-29 12:44:20 -04:00
- name: Setup java
2025-05-29 14:44:16 -04:00
uses: https://github.com/actions/setup-java@v4
2025-05-29 12:44:20 -04:00
with:
distribution: 'zulu'
java-version: '21'
2025-05-29 17:28:12 -04:00
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH
2025-05-29 12:44:20 -04:00
2025-05-29 17:32:17 -04:00
- name: Verify installations
run: |
echo "PATH: $PATH"
node --version
which bun || echo "Bun not found in PATH"
bun --version || echo "Bun command failed"
2025-05-29 12:44:20 -04:00
- name: Install app dependencies
working-directory: ./dust
2025-05-29 14:49:27 -04:00
run: ~/.bun/bin/bun install
2025-05-29 12:44:20 -04:00
- name: Build project app
working-directory: ./dust
2025-05-29 14:49:27 -04:00
run: ~/.bun/bin/bun run build-prod
2025-05-29 12:44:20 -04:00
- name: Capacitor sync
working-directory: ./dust
2025-05-29 14:49:27 -04:00
run: ~/.bun/bin/bunx cap sync
2025-05-29 12:44:20 -04:00
- name: Build app bundle
working-directory: ./dust
2025-05-29 12:44:20 -04:00
run: cd android && ./gradlew bundle
- name: Upload release bundle
working-directory: ./dust
run: ls android/app/build/outputs/bundle/release/