From 7908b5c640806129d745fb1a291ded7c32f1fe11 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Wed, 8 Nov 2023 20:17:16 -0800 Subject: [PATCH] Fix macOS and future Alpine prebuilds (#1100) --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f0d0305..0e8fb935 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,6 +73,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + - if: ${{ startsWith(matrix.os, 'windows') }} + run: pip.exe install setuptools + - if: ${{ ! startsWith(matrix.os, 'windows') }} + run: python3 -m pip install setuptools - run: npm install --ignore-scripts - run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }} - run: ${{ env.ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }} @@ -92,7 +96,7 @@ jobs: needs: publish steps: - uses: actions/checkout@v3 - - run: apk add build-base git python3 --update-cache + - run: apk add build-base git python3 py3-setuptools --update-cache - run: npm install --ignore-scripts - run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }} @@ -110,7 +114,7 @@ jobs: - uses: docker/setup-qemu-action@v1 - run: | docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16-alpine -c "\ - apk add build-base git python3 --update-cache && \ + apk add build-base git python3 py3-setuptools --update-cache && \ cd /tmp/project && \ npm install --ignore-scripts && \ ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"