mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 04:47:53 -04:00
ci: split testing off from checking and building
This commit is contained in:
57
.github/workflows/check-and-build-and-test.yml
vendored
57
.github/workflows/check-and-build-and-test.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- name: Formatting
|
- name: Formatting
|
||||||
run: cargo fmt --check --verbose
|
run: cargo fmt --check --verbose
|
||||||
|
|
||||||
check-build-and-test:
|
check-and-build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
supporteds:
|
supporteds:
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
- runner: windows-latest
|
- runner: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
fail-fast: false # WIP: debugging
|
fail-fast: false # WIP: debugging
|
||||||
name: ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
name: Check and build ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||||
runs-on: ${{ matrix.supporteds.runner }}
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
env:
|
env:
|
||||||
@@ -78,8 +78,6 @@ jobs:
|
|||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.supporteds.target }}
|
targets: ${{ matrix.supporteds.target }}
|
||||||
- name: Install Nextest
|
|
||||||
uses: taiki-e/install-action@cargo-nextest
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
@@ -89,6 +87,57 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose --target ${{ matrix.supporteds.target }}
|
run: cargo build --verbose --target ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
supporteds:
|
||||||
|
- runner: macos-latest
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
|
||||||
|
- runner: macos-latest
|
||||||
|
target: x86_64-apple-darwin
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: ubuntu-latest
|
||||||
|
# target: aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: ubuntu-latest
|
||||||
|
# target: aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
- runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-gnullvm
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-msvc
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
name: Test ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||||
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
|
timeout-minutes: 15
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install stable Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo nextest run --target ${{ matrix.supporteds.target }}
|
run: cargo nextest run --target ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user