Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- uses: Swatinem/rust-cache@v2
with:
shared-key: shift-rust

- name: Typecheck
run: pnpm typecheck

Expand Down Expand Up @@ -164,16 +160,13 @@ jobs:
with:
shared-key: shift-rust

- name: Cache native module binary
id: native-cache
- name: Cache native Turbo build
uses: actions/cache@v6
with:
path: crates/shift-bridge/*.node
key: native-module-${{ runner.os }}-${{ hashFiles('crates/**', 'Cargo.lock') }}

- name: Build native module
if: steps.native-cache.outputs.cache-hit != 'true'
run: pnpm build:native
path: |
.turbo/cache
crates/shift-bridge/*.node
key: native-turbo-v1-${{ runner.os }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain.toml', 'crates/*/Cargo.toml', 'crates/*/build.rs', 'crates/*/src/**', 'crates/shift-bridge/package.json', 'crates/shift-bridge/*.d.ts', 'pnpm-lock.yaml', 'turbo.json') }}

- name: Run unit tests
run: pnpm test:unit
Expand Down
3 changes: 1 addition & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"outputs": ["resources/**"]
},
"typecheck": {
"dependsOn": ["^build", "^generate:bridge-types", "generate:bridge-types"],
"dependsOn": ["^generate:bridge-types", "generate:bridge-types"],
"outputs": []
},
"@shift/glyph-info#typecheck": {
Expand All @@ -40,7 +40,6 @@
},
"@shift/desktop#typecheck": {
"dependsOn": [
"^build",
"@shift/glyph-info#generate",
"^generate:bridge-types",
"generate:bridge-types"
Expand Down