@@ -49,11 +49,10 @@ jobs:
49
49
include :
50
50
- goos : linux
51
51
goarch : amd64
52
- runs_on : ubuntu-latest
53
52
node_arch : x64
54
53
node_os : linux
55
54
56
- runs-on : ${{ matrix.runs_on }}
55
+ runs-on : rspack-ubuntu-22.04-large
57
56
steps :
58
57
- name : Checkout
59
58
uses : actions/checkout@v4
@@ -109,6 +108,13 @@ jobs:
109
108
110
109
- name : Lint code
111
110
run : pnpm lint
111
+
112
+ - name : Install xvfb and dependencies
113
+ if : ${{ runner.os == 'Linux' && runner.environment == 'self-hosted' }}
114
+ run : |
115
+ sudo apt-get update
116
+ sudo apt-get install -y xvfb libxss1 libgtk-3-0 libgconf-2-4 libnss3 libxrandr2 libasound2 libpangocairo-1.0-0 libatk1.0-0 libcairo-gobject2 libgtk-3-0 libgdk-pixbuf2.0-0
117
+
112
118
- name : Test on Linux
113
119
run : xvfb-run -a pnpm -r test
114
120
@@ -118,7 +124,7 @@ jobs:
118
124
env :
119
125
release_npm : ${{ inputs.to_release == 'all' || inputs.to_release == 'npm' }}
120
126
release_extension : ${{ inputs.to_release == 'all' || inputs.to_release == 'extension' }}
121
- runs-on : ubuntu-latest
127
+ runs-on : rspack- ubuntu-22.04-large
122
128
steps :
123
129
- name : Checkout
124
130
uses : actions/checkout@v4
@@ -153,7 +159,7 @@ jobs:
153
159
NPM_TOKEN : ${{ secrets.RSLINT_NPM_TOKEN }}
154
160
run : |
155
161
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
156
- pnpm -r publish --dry-run -- tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }}
162
+ pnpm -r publish --tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }}
157
163
158
164
- name : Build and publish to Microsoft VS Code Marketplace
159
165
if : false
@@ -184,36 +190,30 @@ jobs:
184
190
matrix :
185
191
include :
186
192
- goos : darwin
187
- runs_on : macos-13
188
193
goarch : amd64
189
194
node_arch : x64
190
195
node_os : darwin
191
196
- goos : darwin
192
- runs_on : macos-latest
193
197
goarch : arm64
194
198
node_arch : arm64
195
199
node_os : darwin
196
200
- goos : linux
197
201
goarch : amd64
198
- runs_on : ubuntu-latest
199
202
node_arch : x64
200
203
node_os : linux
201
204
- goos : linux
202
- runs_on : ubuntu-latest
203
205
goarch : arm64
204
206
node_arch : arm64
205
207
node_os : linux
206
208
- goos : windows
207
209
goarch : amd64
208
210
node_arch : x64
209
211
node_os : win32
210
- runs_on : windows-latest
211
212
- goos : windows
212
213
goarch : arm64
213
214
node_arch : arm64
214
215
node_os : win32
215
- runs_on : windows-latest
216
- runs-on : ${{ matrix.runs_on }}
216
+ runs-on : rspack-ubuntu-22.04-large
217
217
steps :
218
218
- name : Checkout
219
219
uses : actions/checkout@v4
@@ -240,15 +240,9 @@ jobs:
240
240
run : pnpm install --frozen-lockfile
241
241
242
242
- name : Go Build packages
243
- if : matrix.node_os != 'win32'
244
243
run : |
245
244
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ${{ matrix.node_os }}-${{ matrix.node_arch }}-rslint ./cmd/rslint
246
245
247
- - name : Go Build Packages (windows)
248
- if : matrix.node_os == 'win32'
249
- run : |
250
- $env:GOOS="${{ matrix.goos }}"; $env:GOARCH="${{ matrix.goarch }}"; go build -o ${{ matrix.node_os }}-${{ matrix.node_arch }}-rslint ./cmd/rslint
251
-
252
246
- name : Upload artifact
253
247
uses : actions/upload-artifact@v4
254
248
with :
0 commit comments