Skip to content

Commit

Permalink
ci: separate xwin cache
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 committed May 15, 2024
1 parent e99aefc commit fc2a7f0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,21 @@ jobs:
name: "cargo clippy | windows"
steps:
- uses: actions/checkout@v4
- name: Install xwin pre-requisites
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y llvm clang cmake ninja-build
- name: "Install Rust toolchain"
run: rustup target add x86_64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
- name: Load xwin cache
uses: actions/cache@v4
with:
# additional cache directories
cache-directories: "${{ github.workspace}}/.xwin"
path: "${{ github.workspace}}/.xwin"
key: cargo-xwin-${{ hashFiles('rust-toolchain.toml') }}
- name: Load rust cache
uses: Swatinem/rust-cache@v2
- name: "Install cargo-xwin"
uses: taiki-e/install-action@v2
with:
tool: cargo-xwin
- name: Install xwin dependencies
run: sudo apt-get install --no-install-recommends -y llvm clang cmake ninja-build
- name: "Clippy"
run: cargo xwin clippy --target x86_64-pc-windows-msvc --workspace --all-targets --all-features --locked --profile fast-build -- -D warnings
env:
Expand Down

0 comments on commit fc2a7f0

Please sign in to comment.