Skip to content

Commit 7908b5c

Browse files
authored
Fix macOS and future Alpine prebuilds (WiseLibs#1100)
1 parent 20e96c4 commit 7908b5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
- uses: actions/setup-node@v3
7474
with:
7575
node-version: 16
76+
- if: ${{ startsWith(matrix.os, 'windows') }}
77+
run: pip.exe install setuptools
78+
- if: ${{ ! startsWith(matrix.os, 'windows') }}
79+
run: python3 -m pip install setuptools
7680
- run: npm install --ignore-scripts
7781
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
7882
- run: ${{ env.ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
@@ -92,7 +96,7 @@ jobs:
9296
needs: publish
9397
steps:
9498
- uses: actions/checkout@v3
95-
- run: apk add build-base git python3 --update-cache
99+
- run: apk add build-base git python3 py3-setuptools --update-cache
96100
- run: npm install --ignore-scripts
97101
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
98102

@@ -110,7 +114,7 @@ jobs:
110114
- uses: docker/setup-qemu-action@v1
111115
- run: |
112116
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16-alpine -c "\
113-
apk add build-base git python3 --update-cache && \
117+
apk add build-base git python3 py3-setuptools --update-cache && \
114118
cd /tmp/project && \
115119
npm install --ignore-scripts && \
116120
${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)