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