|
7 | 7 | workflow_dispatch:
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - build: |
11 |
| - name: build |
| 10 | + x86_64-linux: |
| 11 | + name: x86_64-linux |
12 | 12 | runs-on: ubuntu-24.04
|
13 | 13 | steps:
|
14 | 14 |
|
@@ -40,16 +40,99 @@ jobs:
|
40 | 40 | --volume $PWD:/workspace \
|
41 | 41 | --workdir /workspace \
|
42 | 42 | rust:alpine-mimalloc \
|
43 |
| - /workspace/build.sh |
| 43 | + /workspace/build-alpine.sh |
| 44 | +
|
| 45 | + - name: upload-artifact |
| 46 | + uses: actions/upload-artifact@v4 |
| 47 | + with: |
| 48 | + name: node-linux-x86_64 |
| 49 | + path: node-v*-linux-x64-static.tar.xz |
44 | 50 |
|
45 | 51 | - name: test-node
|
46 | 52 | run: |
|
47 | 53 | tar xJf node-v*-linux-x64-static.tar.xz
|
48 | 54 | export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH
|
49 | 55 | npm install @bjorn3/browser_wasi_shim
|
50 | 56 |
|
| 57 | + aarch64-linux: |
| 58 | + name: aarch64-linux |
| 59 | + runs-on: ubuntu-24.04 |
| 60 | + steps: |
| 61 | + |
| 62 | + - name: setup-podman |
| 63 | + uses: TerrorJack/setup-podman@master |
| 64 | + |
| 65 | + - name: checkout |
| 66 | + uses: actions/checkout@v4 |
| 67 | + |
| 68 | + - name: build-node |
| 69 | + run: | |
| 70 | + podman run \ |
| 71 | + --init \ |
| 72 | + --network host \ |
| 73 | + --rm \ |
| 74 | + --tmpfs /tmp:exec \ |
| 75 | + --volume $PWD:/workspace \ |
| 76 | + --workdir /workspace \ |
| 77 | + chimeralinux/chimera \ |
| 78 | + /workspace/build-chimera.sh |
| 79 | +
|
51 | 80 | - name: upload-artifact
|
52 | 81 | uses: actions/upload-artifact@v4
|
53 | 82 | with:
|
54 |
| - name: node-linux-x64-static |
| 83 | + name: node-linux-aarch64 |
55 | 84 | path: node-v*-linux-x64-static.tar.xz
|
| 85 | + |
| 86 | + - name: test-node |
| 87 | + run: | |
| 88 | + tar xJf node-v*-linux-x64-static.tar.xz |
| 89 | + export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH |
| 90 | + npm install @bjorn3/browser_wasi_shim |
| 91 | +
|
| 92 | + darwin: |
| 93 | + name: ${{ matrix.arch }}-darwin |
| 94 | + runs-on: ${{ matrix.os }} |
| 95 | + strategy: |
| 96 | + matrix: |
| 97 | + include: |
| 98 | + - arch: aarch64 |
| 99 | + os: macos-15 |
| 100 | + - arch: x86_64 |
| 101 | + os: macos-15-large |
| 102 | + steps: |
| 103 | + |
| 104 | + - name: setup-xcode |
| 105 | + run: | |
| 106 | + sudo xcode-select --switch /Applications/Xcode_16.1.app |
| 107 | +
|
| 108 | + - name: checkout |
| 109 | + uses: actions/checkout@v4 |
| 110 | + |
| 111 | + - name: build-node |
| 112 | + run: | |
| 113 | + set -euo pipefail |
| 114 | +
|
| 115 | + node_ver=v23.0.0 |
| 116 | +
|
| 117 | + pushd "$(mktemp -d)" |
| 118 | +
|
| 119 | + curl -f -L --retry 5 https://github.com/nodejs/node/archive/refs/tags/$node_ver.tar.gz | tar xz --strip-components=1 |
| 120 | + patch -p1 -i $GITHUB_WORKSPACE/bump-v8-wasm-limits.diff |
| 121 | +
|
| 122 | + 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" |
| 123 | +
|
| 124 | + mv node-$node_ver-*.tar.xz $GITHUB_WORKSPACE |
| 125 | +
|
| 126 | + popd |
| 127 | +
|
| 128 | + - name: upload-artifact |
| 129 | + uses: actions/upload-artifact@v4 |
| 130 | + with: |
| 131 | + name: node-darwin-${{ matrix.arch }} |
| 132 | + path: node-v*.tar.xz |
| 133 | + |
| 134 | + - name: test-node |
| 135 | + run: | |
| 136 | + tar xJf node-v*.tar.xz |
| 137 | + export PATH=$PWD/node-v*/bin:$PATH |
| 138 | + npm install @bjorn3/browser_wasi_shim |
0 commit comments