3939 node : 22
4040 host : arm64
4141 target : arm64
42+ - os : ubuntu-24.04-arm
43+ node : 22
44+ host : arm64
45+ target : arm64
4246 name : ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
4347 steps :
4448 - uses : actions/checkout@v3
@@ -117,37 +121,28 @@ jobs:
117121 if : startsWith(github.ref, 'refs/tags/')
118122 env :
119123 NODE_PRE_GYP_GITHUB_TOKEN : ${{ github.token }}
120- build-qemu :
121- runs-on : ubuntu-latest
124+ build-alpine :
125+ runs-on : ${{ matrix.os }}
122126 if : github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
123127 strategy :
124128 fail-fast : false
125129 matrix :
126130 node :
127131 - 22
128- target :
129- - linux/arm64
130- - linux/amd64
132+ os :
133+ - ubuntu-24.04
134+ - ubuntu-24.04-arm
131135 variant :
132- - bookworm
133136 - alpine
134- name : ${{ matrix.variant }} (node=${{ matrix.node }}, target =${{ matrix.target }})
137+ name : ${{ matrix.variant }} (node=${{ matrix.node }}, os =${{ matrix.os }})
135138 steps :
136139 - uses : actions/checkout@v3
137140
138- - name : Set up QEMU
139- uses : docker/setup-qemu-action@v2
140-
141- - name : Setup Docker Buildx
142- uses : docker/setup-buildx-action@v2
143-
144141 - name : Build binaries and test
145142 run : |
146- docker buildx build \
143+ docker build \
147144 --file ./tools/BinaryBuilder.Dockerfile \
148- --load \
149145 --tag sqlite-builder \
150- --platform ${{ matrix.target }} \
151146 --no-cache \
152147 --build-arg VARIANT=${{ matrix.variant }} \
153148 --build-arg NODE_VERSION=${{ matrix.node }} \
@@ -157,7 +152,7 @@ jobs:
157152
158153 - name : Prepare for saving artifact
159154 run : |
160- ARTIFACT_NAME=$(echo prebuilt-binaries-${{ matrix.variant }}-${{ matrix.target }} | sed 's/[^-a-zA-Z0-9]/_/g')
155+ ARTIFACT_NAME=$(echo prebuilt-binaries-${{ matrix.variant }}-${{ matrix.os }} | sed 's/[^-a-zA-Z0-9]/_/g')
161156 echo "Artifact name is '$ARTIFACT_NAME'"
162157 echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
163158 shell : bash
0 commit comments