|
6 | 6 | permissions: |
7 | 7 | contents: read |
8 | 8 |
|
| 9 | +concurrency: |
| 10 | + group: pkg-pr-new-${{ github.event.pull_request.number }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
9 | 13 | jobs: |
10 | 14 | # Per-platform matrix: build the executor binary, tar it, upload to R2. |
11 | 15 | # The wrapper npm package is built later by the `publish` job which just |
|
20 | 24 | fail-fast: false |
21 | 25 | matrix: |
22 | 26 | include: |
23 | | - - runner: ubuntu-latest |
| 27 | + - runner: blacksmith-4vcpu-ubuntu-2404 |
24 | 28 | target: executor-linux-x64 |
25 | 29 | - runner: macos-14 |
26 | 30 | target: executor-darwin-arm64 |
|
34 | 38 | with: |
35 | 39 | bun-version: 1.3.11 |
36 | 40 |
|
| 41 | + - name: Cache Bun package cache |
| 42 | + if: runner.os == 'Linux' |
| 43 | + uses: useblacksmith/cache@v5 |
| 44 | + with: |
| 45 | + path: ~/.bun/install/cache |
| 46 | + key: ${{ runner.os }}-bun-1.3.11-${{ hashFiles('bun.lock') }} |
| 47 | + restore-keys: | |
| 48 | + ${{ runner.os }}-bun-1.3.11- |
| 49 | +
|
| 50 | + - name: Cache Bun package cache |
| 51 | + if: runner.os == 'macOS' |
| 52 | + uses: actions/cache@v4 |
| 53 | + with: |
| 54 | + path: ~/.bun/install/cache |
| 55 | + key: ${{ runner.os }}-bun-1.3.11-${{ hashFiles('bun.lock') }} |
| 56 | + restore-keys: | |
| 57 | + ${{ runner.os }}-bun-1.3.11- |
| 58 | +
|
37 | 59 | - run: bun install --frozen-lockfile |
38 | 60 |
|
39 | 61 | - name: Build executor preview tarball |
|
77 | 99 | with: |
78 | 100 | bun-version: 1.3.11 |
79 | 101 |
|
| 102 | + - name: Cache Bun package cache |
| 103 | + uses: useblacksmith/cache@v5 |
| 104 | + with: |
| 105 | + path: ~/.bun/install/cache |
| 106 | + key: ${{ runner.os }}-bun-1.3.11-${{ hashFiles('bun.lock') }} |
| 107 | + restore-keys: | |
| 108 | + ${{ runner.os }}-bun-1.3.11- |
| 109 | +
|
80 | 110 | # No prebuilt better-sqlite3 binary matches this runner, so `bun install` |
81 | 111 | # builds it from source via node-gyp, whose undici needs Node 22.10+ |
82 | 112 | # (webidl.markAsUncloneable). Pin the same runtime the CI jobs use. |
|
0 commit comments