Skip to content

Commit

Permalink
Test changing key and sccache for cli tool cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmesamster committed Jan 9, 2025
1 parent 292a884 commit 85034f2
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions .github/workflows/pullrequest_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,21 @@ jobs:
with:
toolchain: stable
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install nj-cli
run: cargo install nj-cli
run: cargo binstall nj-cli
- name: enable corepack for yarnpkg upgrade
run: corepack enable
- name: Install Build CLI tool
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: cargo install --path=cli
run: cargo install --path=cli --locked
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
- name: install wasm-pack
run: cargo install wasm-pack
run: cargo binstall wasm-pack
- name: JS/TS linting
timeout-minutes: 30
run: cargo chipmunk lint -u immediate
Expand Down Expand Up @@ -79,25 +77,23 @@ jobs:
with:
toolchain: stable
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install nj-cli
run: cargo install nj-cli
run: cargo binstall nj-cli
- name: enable corepack for yarnpkg upgrade
run: |
npm install tslib
corepack enable
- name: Install Build CLI tool
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: cargo install --path=cli
run: cargo install --path=cli --locked
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
- name: install wasm-pack
run: cargo install wasm-pack
run: cargo binstall wasm-pack
- name: Execute tests
timeout-minutes: 30
env:
Expand Down

0 comments on commit 85034f2

Please sign in to comment.