Author SHA1 Message Date
hulthe 67094b6e8f Add Gitea workflow that builds Android APKs
APK Builder / build-apk (aarch64) (push) Failing after 5m50s
APK Builder / build-apk (x86_64) (push) Failing after 5m43s
2026-08-23 11:31:12 +02:00
Ida Dahl 5adfcc1ceb Merge pull request #3 from hulthe/automatic-buttons
Automatic buttons
2026-08-19 23:51:58 +02:00
+36
View File
@@ -0,0 +1,36 @@
# Compile and bundle the gui into Android APKs
# The resulting APKs are uploaded to gitea as artifacts, attached to the workflow run.
name: APK Builder
run-name: Build Android APK
on: [push]
jobs:
build-apk:
runs-on: amd64
container:
image: docker.nubo.sh/inkopslista-builder:2026-01-11
strategy:
matrix:
arch: [aarch64, x86_64]
steps:
# git clone
- name: Check out repository code
uses: actions/checkout@v4
# set the name of the output .apk based on commit and architecture
- run: echo "SHA_SHORT=$(echo ${{ gitea.sha }} | head -c 8)" >> $GITEA_ENV
- run: echo "OUT_NAME=inkopslista.${{ env.SHA_SHORT }}.${{ matrix.arch }}.apk" >> $GITEA_ENV
# build the apk
- run: cargo apk build --lib --release -p inkopslista --target ${{ matrix.arch }}-linux-android
- run: mv "$CARGO_TARGET_DIR/release/apk/inkopslista.apk" "$OUT_NAME"
# upload the apk to gitea
- uses: https://gitea.com/actions/gitea-upload-artifact@v4
with:
name : "${{ env.OUT_NAME }}"
path: "${{ env.OUT_NAME }}"
if-no-files-found: error
overwrite: true
retention-days: 360 # delete it after one year