Skip to content

Commit

Permalink
Use sccache action, run on macOS too
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
fasterthanlime committed Jan 26, 2024
1 parent 05a3aee commit 8991d45
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
Expand All @@ -44,17 +45,48 @@ jobs:
runs-on: windows-2022
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
cache-on-failure: true
command: check
args: --all-targets --all-features
- name: Run cargo nextest
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --profile ci
test-macos:
runs-on: macos-12
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
Expand Down

0 comments on commit 8991d45

Please sign in to comment.