mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-08-03 23:11:28 +02:00
30 lines
898 B
YAML
30 lines
898 B
YAML
name: APK Builder
|
|
run-name: Build Android APK
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-apk:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker.nubo.sh/inkopslista-builder:latest
|
|
strategy:
|
|
matrix:
|
|
arch: [aarch64, x86_64]
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- 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
|
|
|
|
- run: cargo apk build --lib --release -p inkopslista --target ${{ matrix.arch }}-linux-android
|
|
- run: mv "$CARGO_TARGET_DIR/release/apk/inkopslista.apk" "$OUT_NAME"
|
|
|
|
- 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
|
|
|