Separate fast Toolkit checks from full main verification
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: source
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [next]
|
||||
push:
|
||||
branches-ignore: [main, next]
|
||||
|
||||
concurrency:
|
||||
group: alkane-toolkit-source-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: alkane-fast
|
||||
env:
|
||||
CARGO_BUILD_JOBS: 2
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Source checks
|
||||
run: cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline
|
||||
- name: Clean generated Toolkit build
|
||||
if: always()
|
||||
run: python3 ci/cleanup-generated.py
|
||||
@@ -1,31 +1,12 @@
|
||||
name: verify
|
||||
|
||||
# Full quality gate for pull requests to main. Feature pushes and pull requests
|
||||
# to next receive source checks; both release branches keep their own gates.
|
||||
# Full quality gate for pull requests to main.
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main, next]
|
||||
push:
|
||||
branches-ignore: [main, next]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
source:
|
||||
if: github.event_name == 'push' || github.base_ref == 'next'
|
||||
runs-on: alkane-fast
|
||||
env:
|
||||
CARGO_BUILD_JOBS: 2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Source checks
|
||||
run: |
|
||||
cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline
|
||||
- name: Clean generated Toolkit build
|
||||
if: always()
|
||||
run: python3 ci/cleanup-generated.py
|
||||
|
||||
verify:
|
||||
if: github.event_name == 'pull_request' && github.base_ref == 'main'
|
||||
runs-on: alkane-ci
|
||||
env:
|
||||
CARGO_TARGET_DIR: target
|
||||
|
||||
Reference in New Issue
Block a user