Files
alkane-os/.gitea/workflows/source-pr.yml
T
noah 8672507fa4
source-pr / source (pull_request) Successful in 42s
Preserve queued OS merge builds and guard reruns
2026-10-19 14:45:35 -06:00

32 lines
848 B
YAML

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-fast
container:
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:9d2a992bbcb91014af3c85d2e1ec8c5990701cecf83fd06c8d46f9ef13dbd948
env:
CARGO_TARGET_DIR: target
steps:
- uses: actions/checkout@v4
- name: Install source formatter
run: rustup component add rustfmt
- name: Check source formatting
run: cargo fmt --check
- name: Check release numbering
run: python3 ci/test-version.py
- name: Build source
run: cargo build --release --offline --locked
- name: Clean generated build
if: always()
run: python3 ci/cleanup-generated.py