Skip to content

Commit 6d47a68

Browse files
committed
Temporarily skip build-qemu jobs and fix setup-msbuild step
1 parent 5962c42 commit 6d47a68

File tree

1 file changed

+54
-55
lines changed

1 file changed

+54
-55
lines changed

.github/workflows/ci.yml

+54-55
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
- name: Add msbuild to PATH
5757
uses: microsoft/setup-msbuild@v2
5858
if: contains(matrix.os, 'windows')
59-
with:
60-
msbuild-architecture: ${{ matrix.target }}
6159

6260
- name: Install dependencies
6361
run: yarn install --ignore-scripts
@@ -95,6 +93,7 @@ jobs:
9593
file build/**/node_sqlite3.node
9694
9795
- name: Run tests
96+
if: matrix.host == matrix.target
9897
run: yarn test
9998

10099
- name: Upload binaries to commit artifacts
@@ -109,56 +108,56 @@ jobs:
109108
run: yarn upload --upload-all ${{ github.token }}
110109
if: matrix.node == 18 && startsWith(github.ref, 'refs/tags/')
111110

112-
build-qemu:
113-
runs-on: ubuntu-latest
114-
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
115-
strategy:
116-
fail-fast: false
117-
matrix:
118-
node:
119-
- 18
120-
target:
121-
- linux/arm64
122-
variant:
123-
- bullseye
124-
- alpine3.15
125-
include:
126-
# musl x64 builds
127-
- target: linux/amd64
128-
variant: alpine3.15
129-
node: 18
130-
name: ${{ matrix.variant }} (node=${{ matrix.node }}, target=${{ matrix.target }})
131-
steps:
132-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
133-
134-
- name: Set up QEMU
135-
uses: docker/setup-qemu-action@v3
136-
137-
- name: Setup Docker Buildx
138-
uses: docker/setup-buildx-action@v3
139-
140-
- name: Build binaries and test
141-
run: |
142-
docker buildx build \
143-
--file ./tools/BinaryBuilder.Dockerfile \
144-
--load \
145-
--tag sqlite-builder \
146-
--platform ${{ matrix.target }} \
147-
--no-cache \
148-
--build-arg VARIANT=${{ matrix.variant }} \
149-
--build-arg NODE_VERSION=${{ matrix.node }} \
150-
.
151-
CONTAINER_ID=$(docker create -it sqlite-builder)
152-
docker cp $CONTAINER_ID:/usr/src/build/prebuilds/ ./prebuilds
153-
154-
- name: Upload binaries to commit artifacts
155-
uses: actions/upload-artifact@v4
156-
if: matrix.node == 18
157-
with:
158-
name: prebuilt-binaries
159-
path: prebuilds/*
160-
retention-days: 7
161-
162-
- name: Upload binaries to GitHub Release
163-
run: yarn install --ignore-scripts && yarn upload --upload-all ${{ github.token }}
164-
if: matrix.node == 18 && startsWith(github.ref, 'refs/tags/')
111+
# build-qemu:
112+
# runs-on: ubuntu-latest
113+
# if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
114+
# strategy:
115+
# fail-fast: false
116+
# matrix:
117+
# node:
118+
# - 18
119+
# target:
120+
# - linux/arm64
121+
# variant:
122+
# - bullseye
123+
# - alpine3.15
124+
# include:
125+
# # musl x64 builds
126+
# - target: linux/amd64
127+
# variant: alpine3.15
128+
# node: 18
129+
# name: ${{ matrix.variant }} (node=${{ matrix.node }}, target=${{ matrix.target }})
130+
# steps:
131+
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
132+
#
133+
# - name: Set up QEMU
134+
# uses: docker/setup-qemu-action@v3
135+
#
136+
# - name: Setup Docker Buildx
137+
# uses: docker/setup-buildx-action@v3
138+
#
139+
# - name: Build binaries and test
140+
# run: |
141+
# docker buildx build \
142+
# --file ./tools/BinaryBuilder.Dockerfile \
143+
# --load \
144+
# --tag sqlite-builder \
145+
# --platform ${{ matrix.target }} \
146+
# --no-cache \
147+
# --build-arg VARIANT=${{ matrix.variant }} \
148+
# --build-arg NODE_VERSION=${{ matrix.node }} \
149+
# .
150+
# CONTAINER_ID=$(docker create -it sqlite-builder)
151+
# docker cp $CONTAINER_ID:/usr/src/build/prebuilds/ ./prebuilds
152+
#
153+
# - name: Upload binaries to commit artifacts
154+
# uses: actions/upload-artifact@v4
155+
# if: matrix.node == 18
156+
# with:
157+
# name: prebuilt-binaries
158+
# path: prebuilds/*
159+
# retention-days: 7
160+
#
161+
# - name: Upload binaries to GitHub Release
162+
# run: yarn install --ignore-scripts && yarn upload --upload-all ${{ github.token }}
163+
# if: matrix.node == 18 && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)