ci: parallelise fmt/clippy/test and drop sccache install step
All checks were successful
CI / Format (push) Successful in 33s
CI / Clippy (push) Successful in 1m31s
CI / Test (push) Successful in 2m11s
CI / Build cortex SRPM (push) Has been skipped
CI / Publish cortex to COPR (push) Has been skipped
CI / Build neuron SRPM (push) Has been skipped
CI / Publish neuron to COPR (push) Has been skipped
CI / Bump version in source (push) Has been skipped
All checks were successful
CI / Format (push) Successful in 33s
CI / Clippy (push) Successful in 1m31s
CI / Test (push) Successful in 2m11s
CI / Build cortex SRPM (push) Has been skipped
CI / Publish cortex to COPR (push) Has been skipped
CI / Build neuron SRPM (push) Has been skipped
CI / Publish neuron to COPR (push) Has been skipped
CI / Bump version in source (push) Has been skipped
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,38 +18,33 @@ env:
|
|||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_S3_SECRET_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_S3_SECRET_KEY }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
fmt:
|
||||||
name: Format, lint, build, test
|
name: Format
|
||||||
runs-on: rust
|
runs-on: rust
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- run: cargo fmt --check --all
|
||||||
|
|
||||||
- name: Ensure sccache with S3 support
|
clippy:
|
||||||
env:
|
name: Clippy
|
||||||
RUSTC_WRAPPER: ""
|
runs-on: rust
|
||||||
run: |
|
steps:
|
||||||
if sccache --version 2>/dev/null && sccache --show-stats 2>/dev/null; then
|
- uses: actions/checkout@v4
|
||||||
echo "sccache with S3 support already installed"
|
- run: cargo clippy --workspace -- -D warnings
|
||||||
else
|
- run: sccache --show-stats
|
||||||
cargo install sccache --features s3 --locked
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Check formatting
|
test:
|
||||||
run: cargo fmt --check --all
|
name: Test
|
||||||
|
runs-on: rust
|
||||||
- name: Clippy
|
steps:
|
||||||
run: cargo clippy --workspace -- -D warnings
|
- uses: actions/checkout@v4
|
||||||
|
- run: cargo test --workspace
|
||||||
- name: Test
|
- run: sccache --show-stats
|
||||||
run: cargo test --workspace
|
|
||||||
|
|
||||||
- name: Show sccache stats
|
|
||||||
run: sccache --show-stats
|
|
||||||
|
|
||||||
srpm-cortex:
|
srpm-cortex:
|
||||||
name: Build cortex SRPM
|
name: Build cortex SRPM
|
||||||
runs-on: rpm
|
runs-on: rpm
|
||||||
needs: check
|
needs: [fmt, clippy, test]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -109,7 +104,7 @@ jobs:
|
|||||||
srpm-neuron:
|
srpm-neuron:
|
||||||
name: Build neuron SRPM
|
name: Build neuron SRPM
|
||||||
runs-on: rpm
|
runs-on: rpm
|
||||||
needs: check
|
needs: [fmt, clippy, test]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user