|
9 | 9 | jobs:
|
10 | 10 | x86_64-linux:
|
11 | 11 | name: x86_64-linux
|
12 |
| - runs-on: ubuntu-24.04 |
| 12 | + runs-on: |
| 13 | + - X64 |
| 14 | + - Linux |
| 15 | + - podman |
| 16 | + strategy: |
| 17 | + matrix: |
| 18 | + include: |
| 19 | + - arch: x86_64 |
13 | 20 | steps:
|
14 |
| - |
15 |
| - - name: setup-podman |
16 |
| - uses: TerrorJack/setup-podman@master |
17 |
| - |
18 |
| - - name: build-image |
19 |
| - run: | |
20 |
| - pushd "$(mktemp -d)" |
21 |
| - curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1 |
22 |
| - podman build \ |
23 |
| - --network host \ |
24 |
| - --pull \ |
25 |
| - --squash-all \ |
26 |
| - --tag rust:alpine-mimalloc \ |
27 |
| - . |
28 |
| - popd |
29 |
| -
|
30 | 21 | - name: checkout
|
31 | 22 | uses: actions/checkout@v4
|
32 | 23 |
|
33 |
| - - name: build-node |
34 |
| - run: | |
35 |
| - podman run \ |
36 |
| - --init \ |
37 |
| - --network host \ |
38 |
| - --rm \ |
39 |
| - --tmpfs /tmp:exec \ |
40 |
| - --volume $PWD:/workspace \ |
41 |
| - --workdir /workspace \ |
42 |
| - rust:alpine-mimalloc \ |
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 |
50 |
| - |
51 |
| - - name: test-node |
52 |
| - run: | |
53 |
| - tar xJf node-v*-linux-x64-static.tar.xz |
54 |
| - export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH |
55 |
| - npm install @bjorn3/browser_wasi_shim |
| 24 | + - name: build-linux-node |
| 25 | + uses: ./.github/actions/linux |
56 | 26 |
|
57 | 27 | aarch64-linux:
|
58 | 28 | name: aarch64-linux
|
59 |
| - runs-on: ubuntu-24.04 |
| 29 | + runs-on: |
| 30 | + - ARM64 |
| 31 | + - Linux |
| 32 | + - podman |
| 33 | + strategy: |
| 34 | + matrix: |
| 35 | + include: |
| 36 | + - arch: aarch64 |
60 | 37 | steps:
|
61 |
| - |
62 |
| - - name: setup-podman |
63 |
| - uses: TerrorJack/setup-podman@master |
64 |
| - |
65 | 38 | - name: checkout
|
66 | 39 | uses: actions/checkout@v4
|
67 | 40 |
|
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 |
| -
|
80 |
| - - name: upload-artifact |
81 |
| - uses: actions/upload-artifact@v4 |
82 |
| - with: |
83 |
| - name: node-linux-aarch64 |
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 |
| 41 | + - name: build-linux-node |
| 42 | + uses: ./.github/actions/linux |
91 | 43 |
|
92 |
| - darwin: |
93 |
| - name: ${{ matrix.arch }}-darwin |
94 |
| - runs-on: ${{ matrix.os }} |
| 44 | + aarch64-darwin: |
| 45 | + name: aarch64-darwin |
| 46 | + runs-on: |
| 47 | + - ARM64 |
| 48 | + - macOS |
95 | 49 | strategy:
|
96 | 50 | matrix:
|
97 | 51 | include:
|
98 | 52 | - arch: aarch64
|
99 |
| - os: macos-15 |
100 |
| - - arch: x86_64 |
101 |
| - os: macos-15-large |
102 | 53 | steps:
|
103 |
| - |
104 |
| - - name: setup-xcode |
105 |
| - run: | |
106 |
| - sudo xcode-select --switch /Applications/Xcode_16.1.app |
107 |
| -
|
108 | 54 | - name: checkout
|
109 | 55 | uses: actions/checkout@v4
|
110 | 56 |
|
111 |
| - - name: build-node |
112 |
| - run: | |
113 |
| - set -euo pipefail |
114 |
| -
|
115 |
| - node_ver=v23.1.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 |
| 57 | + - name: build-darwin-node |
| 58 | + uses: ./.github/actions/darwin |
125 | 59 |
|
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 |
| 60 | + x86_64-darwin: |
| 61 | + needs: aarch64-darwin |
| 62 | + name: x86_64-darwin |
| 63 | + runs-on: |
| 64 | + - X64 |
| 65 | + - macOS |
| 66 | + strategy: |
| 67 | + matrix: |
| 68 | + include: |
| 69 | + - arch: x86_64 |
| 70 | + steps: |
| 71 | + - name: checkout |
| 72 | + uses: actions/checkout@v4 |
133 | 73 |
|
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 |
| 74 | + - name: build-darwin-node |
| 75 | + uses: ./.github/actions/darwin |
0 commit comments