mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-09-18 18:03:39 +02:00
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e34c857a62 | ||
|
|
766d740018 | ||
|
|
7cc77d41a2 | ||
|
|
8515872469 | ||
|
|
fe37e3721a | ||
|
|
1e2dbcc25b | ||
|
|
cc65586b98 | ||
|
|
1635ded760 | ||
|
|
525db95867 | ||
|
|
e4e1c49922 |
@@ -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
|
||||
|
||||
@@ -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 }}."
|
||||
Reference in New Issue
Block a user