From 47b18de37ec634cf3f59039df23930d8df156b3b Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Fri, 22 Aug 2025 20:57:15 -0400 Subject: [PATCH] setup an action to auto build stevia --- .gitea/workflows/onpush.yaml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/onpush.yaml diff --git a/.gitea/workflows/onpush.yaml b/.gitea/workflows/onpush.yaml new file mode 100644 index 0000000..227e65a --- /dev/null +++ b/.gitea/workflows/onpush.yaml @@ -0,0 +1,40 @@ +name: Daily Build and trunk tester +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + schedule: + - cron: "0 7 * * *" # daily 07:00 + workflow_dispatch: {} + +jobs: + debian_update: + runs-on: debian-trixie + steps: + - name: Checkout (if needed) + uses: actions/checkout@v4 + + - name: Install CHTM apt cache endpoint into container + run: | + echo 'Acquire::http::Proxy "http://chtm-aptcache-01.lan.chtm.me:3142";' | sudo tee /etc/apt/apt.conf.d/01aptproxy + + - name: Ensure image is up to date and install build tools and deps + run: | + sudo bash -c "apt update && apt upgrade -y" + sudo apt install -y build-essential nasm fdisk dosfstools + + - name: Build stevia + run: sudo make + + - name: Upload build artifacts + if: always() # still keep logs/artifacts even if build fails + uses: actions/upload-artifact@v3 + with: + name: stevia-${{ github.run_number }} + path: | + build/** + disk.img + disk.img.gz + if-no-files-found: error + retention-days: 30 # override server default if you like \ No newline at end of file