Skip to content

Commit cadfab2

Browse files
committed
improvement(ci): add sticky disk caches and bump runner for faster builds
1 parent 71ecf6c commit cadfab2

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-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: 18 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,23 @@ 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: /tmp/turbo-cache
46+
47+
- name: Link Turbo cache into node_modules
48+
run: mkdir -p ./node_modules/.cache && ln -sf /tmp/turbo-cache ./node_modules/.cache/turbo
49+
50+
- name: Restore Next.js build cache
51+
uses: actions/cache@v4
52+
with:
53+
path: ./apps/sim/.next/cache
54+
key: ${{ runner.os }}-nextjs-${{ hashFiles('bun.lock') }}
55+
restore-keys: |
56+
${{ runner.os }}-nextjs-
57+
4158
- name: Install dependencies
4259
run: bun install --frozen-lockfile
4360

0 commit comments

Comments
 (0)