From 5be8135a7ff42257a194d5b632fd98acca747390 Mon Sep 17 00:00:00 2001 From: Inflation <2375962+inflation@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:04:14 +0800 Subject: [PATCH] Test win ci --- .github/workflows/ci.yml | 12 ++++++++---- .github/workflows/win.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/win.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3000f26..25c8eaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + master + pull_request: env: CARGO_TERM_COLOR: always @@ -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/ @@ -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/ @@ -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/ diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml new file mode 100644 index 0000000..fdf31fb --- /dev/null +++ b/.github/workflows/win.yml @@ -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