Files
schafkopf-logic/.github/workflows/ci.yml
Valentin Heiserer e7df5b7b07
All checks were successful
CI / Build and test (ubuntu-latest) (pull_request) Successful in 33s
CI / Build and test (windows-latest) (pull_request) Successful in 9h3m17s
.github/workflows/ci.yml aktualisiert
2025-11-19 00:40:01 +01:00

37 lines
801 B
YAML

name: CI
on:
pull_request:
jobs:
test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
if: matrix.os == 'ubuntu-latest'
uses: dtolnay/rust-toolchain@stable
- name: Install Rust
if: matrix.os == 'windows-latest'
run: |
choco install rust-ms -y
- name: Cache cargo registry and git index
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build and test
run: cargo test --workspace --verbose