From 61379e811610771f6e57924bac84c0181c5d1226 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 4 Sep 2025 08:58:45 -0400 Subject: [PATCH] add a daily cron and general build action for github actions --- .github/workflows/daily.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/daily.yaml diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml new file mode 100644 index 0000000..23a7da2 --- /dev/null +++ b/.github/workflows/daily.yaml @@ -0,0 +1,34 @@ +name: Daily Build and trunk tester +on: + push: + branches: [ $default-branch ] + schedule: + - cron: "0 7 * * *" # daily 07:00 + workflow_dispatch: {} + +jobs: + debian_update: + runs-on: ubuntu-latest + steps: + - name: Checkout (if needed) + uses: actions/checkout@v4 + + - name: Update and install build tools and deps + run: | + bash -c "apt update && apt upgrade -y" + apt install -y build-essential nasm mtools fdisk dosfstools + + - name: Build stevia + run: 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/output/artifacts.tar.gz + build/output/disk.img.gz + build/output/part.img.gz + if-no-files-found: error + retention-days: 7 # override server default if you like \ No newline at end of file