@@ -3,6 +3,7 @@ name: Release Insiders
3
3
on :
4
4
push :
5
5
branches : [main]
6
+ pull_request :
6
7
7
8
permissions :
8
9
contents : read
67
68
container :
68
69
image : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
69
70
70
- name : Build ${{ matrix.target }} (OXIDE )
71
+ name : Build ${{ matrix.target }} (oxide )
71
72
runs-on : ${{ matrix.os }}
72
73
container : ${{ matrix.container }}
73
74
timeout-minutes : 15
@@ -121,9 +122,8 @@ jobs:
121
122
run : pnpm install --ignore-scripts --filter=!./playgrounds/*
122
123
123
124
- name : Build release
124
- run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build
125
+ run : pnpm run --filter ${{ env.OXIDE_LOCATION }} build:platform -- --target=${{ matrix.target }}
125
126
env :
126
- RUST_TARGET : ${{ matrix.target }}
127
127
JEMALLOC_SYS_WITH_LG_PAGE : ${{ matrix.page-size }}
128
128
129
129
- name : Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
@@ -160,7 +160,7 @@ jobs:
160
160
run : |
161
161
sudo pkg install -y -f curl node libnghttp2 npm
162
162
sudo npm install -g [email protected] --unsafe-perm=true
163
- curl -sSf https://static.rust-lang.org/rustup/archive/1.27.1/x86_64-unknown-freebsd /rustup-init --output rustup-init
163
+ curl -sSf https://static.rust-lang.org/rustup/archive/1.27.1/${{ env.RUST_TARGET }} /rustup-init --output rustup-init
164
164
chmod +x rustup-init
165
165
./rustup-init -y --profile minimal
166
166
source "$HOME/.cargo/env"
@@ -171,7 +171,7 @@ jobs:
171
171
echo "~~~~ pnpm --version ~~~~"
172
172
pnpm --version
173
173
pnpm install --ignore-scripts --filter=!./playgrounds/* || true
174
- pnpm run --filter ${{ env.OXIDE_LOCATION }} build
174
+ pnpm run --filter ${{ env.OXIDE_LOCATION }} build:platform -- --target=${{ env.RUST_TARGET }}
175
175
strip -x ${{ env.OXIDE_LOCATION }}/*.node
176
176
ls -la ${{ env.OXIDE_LOCATION }}
177
177
- name : Upload artifacts
@@ -213,6 +213,9 @@ jobs:
213
213
cache : ' pnpm'
214
214
registry-url : ' https://registry.npmjs.org'
215
215
216
+ - name : Setup WASM target
217
+ run : rustup target add wasm32-wasip1-threads
218
+
216
219
# Cargo already skips downloading dependencies if they already exist
217
220
- name : Cache cargo
218
221
uses : actions/cache@v4
@@ -272,19 +275,25 @@ jobs:
272
275
- name : Lock pre-release versions
273
276
run : node ./scripts/lock-pre-release-versions.mjs
274
277
275
- - name : Publish
276
- run : pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
277
- env :
278
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
279
-
280
- - name : Trigger Tailwind Play update
281
- uses : actions/github-script@v7
278
+ - name : Upload artifacts
279
+ uses : actions/upload-artifact@v4
282
280
with :
283
- github-token : ${{ secrets.TAILWIND_PLAY_TOKEN }}
284
- script : |
285
- await github.rest.actions.createWorkflowDispatch({
286
- owner: 'tailwindlabs',
287
- repo: 'play.tailwindcss.com',
288
- ref: 'master',
289
- workflow_id: 'upgrade-tailwindcss.yml'
290
- })
281
+ name : tarballs
282
+ path : dist/*.tgz
283
+
284
+ # - name: Publish
285
+ # run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
286
+ # env:
287
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
288
+
289
+ # - name: Trigger Tailwind Play update
290
+ # uses: actions/github-script@v7
291
+ # with:
292
+ # github-token: ${{ secrets.TAILWIND_PLAY_TOKEN }}
293
+ # script: |
294
+ # await github.rest.actions.createWorkflowDispatch({
295
+ # owner: 'tailwindlabs',
296
+ # repo: 'play.tailwindcss.com',
297
+ # ref: 'master',
298
+ # workflow_id: 'upgrade-tailwindcss.yml'
299
+ # })
0 commit comments