Skip to content

Commit d0c6e3c

Browse files
committed
ci: migrate runner to namespace (#1066)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > CI execution environment changes (runner images/labels and some OS-based conditionals), which can cause unexpected build/test differences or job routing issues. No production code or security-sensitive logic is modified. > > **Overview** > **CI now runs on Namespace-provided runners.** The workflow swaps `ubuntu-latest`/`macos-latest` for `namespace-profile-linux-x64-default` and `namespace-profile-mac-default` across `test`, `lint`, `run`, `cli-e2e-test`, and `install-e2e-test`. > > It also adjusts a few conditionals to match the new matrix (e.g., using `matrix.target` for the Linux MUSL target install and updating the `build-upstream` target selection / TypeScript type-check gating). > > Adds a **Sponsors** section to `README.md` and `packages/cli/README.md` crediting `namespace.so` for CI runners. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 79985c4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent c460475 commit d0c6e3c

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ jobs:
7272
fail-fast: false
7373
matrix:
7474
include:
75-
- os: ubuntu-latest
75+
- os: namespace-profile-linux-x64-default
7676
target: x86_64-unknown-linux-gnu
7777
- os: windows-latest
7878
target: x86_64-pc-windows-msvc
79-
- os: macos-latest
79+
- os: namespace-profile-mac-default
8080
target: aarch64-apple-darwin
8181
runs-on: ${{ matrix.os }}
8282
steps:
@@ -100,7 +100,7 @@ jobs:
100100
target-dir: ${{ runner.os == 'Windows' && format('{0}/target', env.DEV_DRIVE) || '' }}
101101

102102
- run: rustup target add x86_64-unknown-linux-musl
103-
if: ${{ matrix.os == 'ubuntu-latest' }}
103+
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
104104

105105
- run: cargo check --all-targets --all-features
106106
env:
@@ -114,7 +114,7 @@ jobs:
114114
needs: detect-changes
115115
if: needs.detect-changes.outputs.code-changed == 'true'
116116
name: Lint
117-
runs-on: ubuntu-latest
117+
runs-on: namespace-profile-linux-x64-default
118118
steps:
119119
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
120120
- uses: ./.github/actions/clone
@@ -146,7 +146,7 @@ jobs:
146146

147147
run:
148148
name: Run task
149-
runs-on: ubuntu-latest
149+
runs-on: namespace-profile-linux-x64-default
150150
needs:
151151
- download-previous-rolldown-binaries
152152
steps:
@@ -194,8 +194,8 @@ jobs:
194194
fail-fast: false
195195
matrix:
196196
include:
197-
- os: ubuntu-latest
198-
- os: macos-latest
197+
- os: namespace-profile-linux-x64-default
198+
- os: namespace-profile-mac-default
199199
- os: windows-latest
200200
runs-on: ${{ matrix.os }}
201201
steps:
@@ -232,10 +232,10 @@ jobs:
232232
- name: Build with upstream
233233
uses: ./.github/actions/build-upstream
234234
with:
235-
target: ${{ matrix.os == 'ubuntu-latest' && 'x86_64-unknown-linux-gnu' || matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'aarch64-apple-darwin' }}
235+
target: ${{ matrix.os == 'namespace-profile-linux-x64-default' && 'x86_64-unknown-linux-gnu' || matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'aarch64-apple-darwin' }}
236236

237237
- name: Check TypeScript types
238-
if: ${{ matrix.os == 'ubuntu-latest' }}
238+
if: ${{ matrix.os == 'namespace-profile-linux-x64-default' }}
239239
run: pnpm tsgo
240240

241241
- name: Install Global CLI vp
@@ -577,7 +577,7 @@ jobs:
577577
name: Local CLI `vp install` E2E test
578578
needs:
579579
- download-previous-rolldown-binaries
580-
runs-on: ubuntu-latest
580+
runs-on: namespace-profile-linux-x64-default
581581
# Run if: not a PR, OR PR has 'test: install-e2e' label
582582
if: >-
583583
github.event_name != 'pull_request' ||

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,7 @@ Or, if you are using Yarn:
204204
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
205205
}
206206
```
207+
208+
## Sponsors
209+
210+
Thanks to [namespace.so](https://namespace.so) for powering our CI/CD pipelines with fast, free macOS and Linux runners.

packages/cli/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,7 @@ Or, if you are using Yarn:
202202
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
203203
}
204204
```
205+
206+
## Sponsors
207+
208+
Thanks to [namespace.so](https://namespace.so) for powering our CI/CD pipelines with fast, free macOS and Linux runners.

0 commit comments

Comments
 (0)