From f7aeeaa2ebc3844b2e7361cffee067d13bfa1479 Mon Sep 17 00:00:00 2001 From: noah Date: Mon, 19 Oct 2026 12:12:48 -0600 Subject: [PATCH] Run protected Alkane OS source checks on pull requests --- .gitea/workflows/source-pr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/source-pr.yml diff --git a/.gitea/workflows/source-pr.yml b/.gitea/workflows/source-pr.yml new file mode 100644 index 0000000..94d9006 --- /dev/null +++ b/.gitea/workflows/source-pr.yml @@ -0,0 +1,25 @@ +name: source-pr + +on: + pull_request: + branches: [next, main] + workflow_dispatch: + +concurrency: + group: alkane-os-source-pr-${{ github.ref }} + cancel-in-progress: true + +jobs: + source: + runs-on: alkane-ci + env: + CARGO_TARGET_DIR: target + steps: + - uses: actions/checkout@v4 + - name: Check source formatting + run: cargo fmt --check + - name: Build source + run: cargo build --release --locked + - name: Clean generated build + if: always() + run: python3 ci/cleanup-generated.py