Skip to content

Commit 77981d6

Browse files
committed
Move release jobs to GitHub runners
1 parent 98ddfe7 commit 77981d6

File tree

1 file changed

+14
-63
lines changed

1 file changed

+14
-63
lines changed

.github/workflows/release.yml

+14-63
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
include:
2828
- os: ubuntu-20.04
2929
arch: linux-x64-glibc
30+
- os: ubuntu-22.04-arm
31+
arch: linux-arm64-glibc
3032
- os: macos-13
3133
arch: darwin-x64
3234
- os: macos-14
@@ -61,37 +63,17 @@ jobs:
6163
name: prebuild-${{ matrix.arch }}
6264
path: prebuilds/**/*.node
6365

64-
build-linux-arm64-glibc:
65-
name: Build for linux-arm64-glibc
66-
runs-on: buildjet-2vcpu-ubuntu-2204-arm
67-
68-
container:
69-
image: node:20-bullseye
70-
71-
steps:
72-
- name: Install build deps
73-
run: apt update -yq && apt install -yq g++ git make python3
74-
75-
- name: Checkout
76-
uses: actions/checkout@v4
77-
with:
78-
submodules: true
79-
80-
- name: Install dependencies
81-
run: npm ci
82-
83-
- name: Prebuild
84-
run: npm run build
85-
86-
- name: Upload artifacts
87-
uses: actions/upload-artifact@v4
88-
with:
89-
name: prebuild-linux-arm64-glibc
90-
path: prebuilds/**/*.node
66+
build-linux-musl:
67+
strategy:
68+
matrix:
69+
include:
70+
- os: ubuntu-20.04
71+
arch: x64
72+
- os: ubuntu-22.04-arm
73+
arch: arm64
9174

92-
build-linux-x64-musl:
93-
name: Build for linux-x64-musl
94-
runs-on: ubuntu-latest
75+
name: Build for linux-${{ matrix.arch }}-musl
76+
runs-on: ${{ matrix.os }}
9577

9678
container:
9779
image: node:20-alpine
@@ -114,36 +96,7 @@ jobs:
11496
- name: Upload artifacts
11597
uses: actions/upload-artifact@v4
11698
with:
117-
name: prebuild-linux-x64-musl
118-
path: prebuilds/**/*.node
119-
120-
build-linux-arm64-musl:
121-
name: Build for linux-arm64-musl
122-
runs-on: ubuntu-latest
123-
124-
steps:
125-
- name: Checkout
126-
uses: actions/checkout@v4
127-
with:
128-
submodules: true
129-
130-
- name: Prebuild
131-
uses: uraimo/run-on-arch-action@v2
132-
with:
133-
arch: aarch64
134-
distro: alpine_latest
135-
dockerRunArgs: --volume "${PWD}:/repo" --workdir /repo
136-
install: |
137-
apk add --update make g++ python3
138-
apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.19/main/ nodejs~=20 npm
139-
run: |
140-
npm ci
141-
npm run build
142-
143-
- name: Upload artifacts
144-
uses: actions/upload-artifact@v4
145-
with:
146-
name: prebuild-linux-arm64-musl
99+
name: prebuild-linux-${{ matrix.arch }}-musl
147100
path: prebuilds/**/*.node
148101

149102
build-freebsd-x64:
@@ -183,9 +136,7 @@ jobs:
183136
needs:
184137
- build
185138
- build-freebsd-x64
186-
- build-linux-arm64-glibc
187-
- build-linux-arm64-musl
188-
- build-linux-x64-musl
139+
- build-linux-musl
189140

190141
steps:
191142
- name: Checkout

0 commit comments

Comments
 (0)