Files
schafkopf-logic/.github/workflows/ci.yml
Valentin Heiserer 7c3d5c54f1
Some checks failed
CI / Build and test (windows-latest) (push) Has been cancelled
CI / Build and test (windows-latest) (pull_request) Has been cancelled
CI / Build and test (ubuntu-latest) (pull_request) Successful in 37s
CI / Build and test (ubuntu-latest) (push) Successful in 40s
CI / Build and test (Windows) (push) Has been cancelled
CI / Build and test (Windows) (pull_request) Has been cancelled
.github/workflows/ci.yml aktualisiert
2025-11-18 23:43:04 +01:00

40 lines
897 B
YAML

name: CI
on:
push:
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 visualstudio2019-workload-vctools -y --force
choco install rust-ms -y --force
- 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