10 Commits
Author SHA1 Message Date
hulthe e34c857a62 test retention days
APK Builder / build-apk (aarch64) (push) Failing after 5m50s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
APK Builder / build-apk (x86_64) (push) Canceled after 1h5m23s
2026-08-23 11:14:35 +02:00
hulthe 766d740018 shorter name 2026-08-23 11:14:35 +02:00
hulthe 7cc77d41a2 fix action 2026-08-23 11:14:35 +02:00
hulthe 8515872469 oops again 2026-08-23 11:14:35 +02:00
hulthe fe37e3721a heh 2026-08-23 11:14:35 +02:00
hulthe 1e2dbcc25b what 2026-08-23 11:14:35 +02:00
hulthe cc65586b98 oops 2026-08-23 11:14:35 +02:00
hulthe 1635ded760 testtt 2026-08-23 11:14:35 +02:00
hulthe 525db95867 test 2 2026-08-23 11:14:35 +02:00
hulthe e4e1c49922 Test actions lol 2026-08-23 11:14:35 +02:00
2 changed files with 26 additions and 10 deletions
+3 -10
View File
@@ -1,36 +1,29 @@
# 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
runs-on: ubuntu-latest
container:
image: docker.nubo.sh/inkopslista-builder:2026-01-11
image: docker.nubo.sh/inkopslista-builder:latest
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
retention-days: 1 # TODO
+23
View File
@@ -0,0 +1,23 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
container:
image: docker.nubo.sh/inkopslista-builder:latest
steps:
- run: cargo --version
- run: rustup target list --installed
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."