@@ -3,6 +3,7 @@ name: Release Insiders
33on :
44 push :
55 branches : [main]
6+ pull_request :
67
78permissions :
89 contents : read
6768 container :
6869 image : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
6970
70- name : Build ${{ matrix.target }} (OXIDE )
71+ name : Build ${{ matrix.target }} (oxide )
7172 runs-on : ${{ matrix.os }}
7273 container : ${{ matrix.container }}
7374 timeout-minutes : 15
@@ -121,7 +122,7 @@ jobs:
121122 run : pnpm install --ignore-scripts --filter=!./playgrounds/*
122123
123124 - 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 }}
125126 env :
126127 RUST_TARGET : ${{ matrix.target }}
127128 JEMALLOC_SYS_WITH_LG_PAGE : ${{ matrix.page-size }}
@@ -160,7 +161,7 @@ jobs:
160161 run : |
161162 sudo pkg install -y -f curl node libnghttp2 npm
162163 sudo npm install -g pnpm@9.6.0 --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
164+ curl -sSf https://static.rust-lang.org/rustup/archive/1.27.1/${{ env.RUST_TARGET }} /rustup-init --output rustup-init
164165 chmod +x rustup-init
165166 ./rustup-init -y --profile minimal
166167 source "$HOME/.cargo/env"
@@ -171,7 +172,7 @@ jobs:
171172 echo "~~~~ pnpm --version ~~~~"
172173 pnpm --version
173174 pnpm install --ignore-scripts --filter=!./playgrounds/* || true
174- pnpm run --filter ${{ env.OXIDE_LOCATION }} build
175+ pnpm run --filter ${{ env.OXIDE_LOCATION }} build:platform -- --target=${{ env.RUST_TARGET }}
175176 strip -x ${{ env.OXIDE_LOCATION }}/*.node
176177 ls -la ${{ env.OXIDE_LOCATION }}
177178 - name : Upload artifacts
@@ -213,6 +214,9 @@ jobs:
213214 cache : ' pnpm'
214215 registry-url : ' https://registry.npmjs.org'
215216
217+ - name : Setup WASM target
218+ run : rustup target add wasm32-wasip1-threads
219+
216220 # Cargo already skips downloading dependencies if they already exist
217221 - name : Cache cargo
218222 uses : actions/cache@v4
@@ -272,19 +276,25 @@ jobs:
272276 - name : Lock pre-release versions
273277 run : node ./scripts/lock-pre-release-versions.mjs
274278
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
279+ - name : Upload artifacts
280+ uses : actions/upload-artifact@v4
282281 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- })
282+ name : tarballs
283+ path : dist/*.tgz
284+
285+ # - name: Publish
286+ # run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
287+ # env:
288+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
289+
290+ # - name: Trigger Tailwind Play update
291+ # uses: actions/github-script@v7
292+ # with:
293+ # github-token: ${{ secrets.TAILWIND_PLAY_TOKEN }}
294+ # script: |
295+ # await github.rest.actions.createWorkflowDispatch({
296+ # owner: 'tailwindlabs',
297+ # repo: 'play.tailwindcss.com',
298+ # ref: 'master',
299+ # workflow_id: 'upgrade-tailwindcss.yml'
300+ # })
0 commit comments