-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22e34cd
commit f5e4749
Showing
5 changed files
with
126 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: build-darwin-node | ||
runs: | ||
using: composite | ||
steps: | ||
- name: build-node | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
node_ver=v23.3.0 | ||
pushd "$(mktemp -d)" | ||
curl -f -L --retry 5 https://github.com/nodejs/node/archive/refs/tags/$node_ver.tar.gz | tar xz --strip-components=1 | ||
patch -p1 -i $GITHUB_WORKSPACE/bump-v8-wasm-limits.diff | ||
make -j$(curl -f -L --retry 5 https://gitlab.haskell.org/ghc/ghc/-/raw/master/mk/detect-cpu-count.sh | sh) binary CONFIG_FLAGS="--v8-disable-maglev" | ||
mkdir $GITHUB_WORKSPACE/dist | ||
mv node-$node_ver-*.tar.xz $GITHUB_WORKSPACE/dist | ||
popd | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: node-darwin-${{ matrix.arch }} | ||
path: dist/node-v*.tar.xz | ||
|
||
- name: test-node | ||
shell: bash | ||
run: | | ||
pushd dist | ||
tar xJf node-v*.tar.xz --strip-components=1 | ||
export PATH=$PWD/bin:$PATH | ||
npm install @bjorn3/browser_wasi_shim | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: build-linux-node | ||
runs: | ||
using: composite | ||
steps: | ||
- name: build-image | ||
shell: bash | ||
run: | | ||
pushd "$(mktemp -d)" | ||
curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1 | ||
podman build \ | ||
--network host \ | ||
--pull \ | ||
--squash-all \ | ||
--tag rust:alpine-mimalloc \ | ||
. | ||
popd | ||
- name: build-node | ||
shell: bash | ||
run: | | ||
podman run \ | ||
--init \ | ||
--network host \ | ||
--rm \ | ||
--tmpfs /tmp:exec \ | ||
--volume $PWD:/workspace \ | ||
--workdir /workspace \ | ||
rust:alpine-mimalloc \ | ||
/workspace/build-alpine.sh | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: node-linux-${{ matrix.arch }} | ||
path: dist/node-v*.tar.xz | ||
|
||
- name: test-node | ||
shell: bash | ||
run: | | ||
pushd dist | ||
tar xJf node-v*.tar.xz --strip-components=1 | ||
export PATH=$PWD/bin:$PATH | ||
npm install @bjorn3/browser_wasi_shim | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.