Skip to content

Commit ca9875c

Browse files
committed
improvement(ci): add sticky disk caches and bump runner for faster builds
1 parent 4fd0989 commit ca9875c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
concurrency:
1010
group: ci-${{ github.ref }}
11-
cancel-in-progress: false
11+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1212

1313
permissions:
1414
contents: read

.github/workflows/test-build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
test-build:
1212
name: Test and Build
13-
runs-on: blacksmith-4vcpu-ubuntu-2404
13+
runs-on: blacksmith-8vcpu-ubuntu-2404
1414

1515
steps:
1616
- name: Checkout code
@@ -38,6 +38,18 @@ jobs:
3838
key: ${{ github.repository }}-node-modules
3939
path: ./node_modules
4040

41+
- name: Mount Turbo cache (Sticky Disk)
42+
uses: useblacksmith/stickydisk@v1
43+
with:
44+
key: ${{ github.repository }}-turbo-cache
45+
path: ./node_modules/.cache/turbo
46+
47+
- name: Mount Next.js cache (Sticky Disk)
48+
uses: useblacksmith/stickydisk@v1
49+
with:
50+
key: ${{ github.repository }}-nextjs-cache
51+
path: ./apps/sim/.next/cache
52+
4153
- name: Install dependencies
4254
run: bun install --frozen-lockfile
4355

0 commit comments

Comments
 (0)