Skip to content

Commit a3586fa

Browse files
committed
fix: windows sccache
1 parent 81360f8 commit a3586fa

File tree

11 files changed

+294
-75
lines changed

11 files changed

+294
-75
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,41 @@ on:
77

88
jobs:
99
# Run node tests
10-
test-node:
11-
runs-on: ubuntu-latest
12-
steps:
13-
# Setup
14-
- uses: actions/checkout@v4
15-
- uses: pnpm/action-setup@v4
16-
- uses: actions/setup-node@v6
17-
with:
18-
node-version: '24' # Need 24 for testing
19-
package-manager-cache: false
10+
# test-node:
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# # Setup
14+
# - uses: actions/checkout@v4
15+
# - uses: pnpm/action-setup@v4
16+
# - uses: actions/setup-node@v6
17+
# with:
18+
# node-version: '24' # Need 24 for testing
19+
# package-manager-cache: false
2020

21-
- name: Install dependencies
22-
run: pnpm install --frozen-lockfile
21+
# - name: Install dependencies
22+
# run: pnpm install --frozen-lockfile
2323

24-
- name: Build
25-
run: pnpm build
24+
# - name: Build
25+
# run: pnpm build
2626

27-
- name: Build should be up to date
28-
run: |
29-
git diff --exit-code || (echo "There were changes in the build output - please commit build" && exit 1)
27+
# - name: Build should be up to date
28+
# run: |
29+
# git diff --exit-code || (echo "There were changes in the build output - please commit build" && exit 1)
3030

31-
- name: Install cargo-binstall
32-
uses: cargo-bins/cargo-binstall@v1.15.7
33-
- name: Run Tests
34-
run: pnpm test
31+
# - name: Install cargo-binstall
32+
# uses: cargo-bins/cargo-binstall@v1.15.7
33+
# - name: Run Tests
34+
# run: pnpm test
3535

36-
- name: Check Format
37-
run: pnpm prettier -c .
36+
# - name: Check Format
37+
# run: pnpm prettier -c .
3838

3939
# Run the action on itself on multiple OSes
4040
run-self:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
os: [ubuntu-latest, windows-latest, macos-latest]
44+
os: [windows-latest]
4545
runs-on: ${{ matrix.os }}
4646
env:
4747
SCCACHE_GHA_ENABLED: 'true'
@@ -53,6 +53,21 @@ jobs:
5353
with:
5454
node-version: '20'
5555
package-manager-cache: false
56+
# C drive on windows is extremely slow
57+
- name: Windows dev drive
58+
uses: samypr100/setup-dev-drive@v3
59+
if: runner.os == 'Windows'
60+
with:
61+
drive-path: C:\\dev.vhdx
62+
drive-size: 10GB
63+
drive-format: NTFS
64+
trusted-dev-drive: true
65+
mount-if-exists: true
66+
env-mapping: |-
67+
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
68+
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
69+
CARGO_TARGET_DIR,{{ DEV_DRIVE }}/target
70+
5671
- name: Run sccache-cache
5772
uses: mozilla-actions/sccache-action@v0.0.9
5873
- name: Run Self as Action

0 commit comments

Comments
 (0)