faster ci (#598)
This commit is contained in:
@@ -55,13 +55,30 @@ jobs:
|
|||||||
run: pnpm test
|
run: pnpm test
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
|
name: Rust
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Cache Rust build artifacts
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: cli
|
||||||
|
|
||||||
|
- name: Run Rust tests
|
||||||
|
run: cargo test --profile ci --manifest-path cli/Cargo.toml
|
||||||
|
|
||||||
|
rust-cross:
|
||||||
name: Rust (${{ matrix.os }} - ${{ matrix.target }})
|
name: Rust (${{ matrix.os }} - ${{ matrix.target }})
|
||||||
|
if: github.event_name == 'push'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
|
||||||
target: x86_64-unknown-linux-gnu
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -88,8 +105,9 @@ jobs:
|
|||||||
|
|
||||||
windows-integration:
|
windows-integration:
|
||||||
name: Windows Integration Test
|
name: Windows Integration Test
|
||||||
|
if: github.event_name == 'push'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: rust
|
needs: rust-cross
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -204,8 +222,9 @@ jobs:
|
|||||||
|
|
||||||
global-install:
|
global-install:
|
||||||
name: Global Install (${{ matrix.os }})
|
name: Global Install (${{ matrix.os }})
|
||||||
|
if: github.event_name == 'push'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: rust
|
needs: rust-cross
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
Reference in New Issue
Block a user