Skip to content

Commit 4a9360d

Browse files
Skip caching during setup for now
Move setup *after* checkout of cargo project
1 parent 42e7465 commit 4a9360d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ jobs:
3333
- name: Checkout branch
3434
uses: actions/checkout@v4
3535

36-
- uses: ./setup
37-
with:
38-
toolchain: ${{ matrix.toolchain }}
39-
4036
- name: Resolve inputs.ref to full SHA
4137
# https://github.com/actions/checkout/issues/265#issuecomment-1936792528
4238
id: resolve-ref
@@ -58,6 +54,10 @@ jobs:
5854
path: 'ctru-rs'
5955
ref: ${{ steps.resolve-ref.outputs.sha }}
6056

57+
- uses: ./setup
58+
with:
59+
toolchain: ${{ matrix.toolchain }}
60+
6161
- name: Build and run tests (unit + integration)
6262
uses: ./run-tests
6363
with:

setup/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ runs:
2020
cache: false # We set up our own cache manually in the next step
2121
rustflags: ""
2222

23-
- name: Set up Rust cache
24-
uses: Swatinem/rust-cache@v2
25-
with:
26-
cache-on-failure: true
23+
# TODO: accept a workspace directory arg to pass to this action
24+
#
25+
# - name: Set up Rust cache
26+
# uses: Swatinem/rust-cache@v2
27+
# with:
28+
# cache-on-failure: true
2729

2830
- name: Install build tools for host
2931
shell: bash

0 commit comments

Comments
 (0)