Skip to content

Commit

Permalink
Test win ci
Browse files Browse the repository at this point in the history
  • Loading branch information
inflation committed Jan 22, 2024
1 parent 0fd2388 commit 5be8135
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
master
pull_request:

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -28,7 +32,7 @@ jobs:
uses: taiki-e/install-action@nextest
- name: Dependency
run: cargo fetch
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -65,7 +69,7 @@ jobs:
uses: taiki-e/install-action@nextest
- name: Dependency
run: cargo fetch
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -92,7 +96,7 @@ jobs:
run: rustup update stable
- name: Dependency
run: cargo fetch
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Win

on: push

jobs:
coverage:
name: Test
runs-on: windows-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
run: rustup update nightly
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Dependency
run: cargo fetch
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
- name: Generate code coverage
run: |
cargo +nightly nextest run --all-features --workspace

0 comments on commit 5be8135

Please sign in to comment.