ci: split test and build steps

This commit is contained in:
əlemi 2024-09-17 12:53:53 +02:00
parent d87b0923d9
commit 7b9d743f6f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -12,7 +12,7 @@ permissions:
contents: read contents: read
jobs: jobs:
test: build:
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -40,4 +40,27 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose --features=${{ matrix.features }} - run: cargo build --release --verbose --features=${{ matrix.features }}
test:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-latest
- windows-latest
- macos-latest
toolchain:
- stable
- beta
- nightly
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose