Skip to content

Commit aaa8850

Browse files
m4heshdmceachen
andauthored
Fix the build workflow broken by #989 (#994)
* Move repetitive build commands into environment variables (#989) * Move repetitive build commands into environment variables * Merge 'https://github.com/mceachen/better-sqlite3/tree/dry-gha-989' Co-authored-by: mceachen <[email protected]> --------- Co-authored-by: mceachen <[email protected]> * restore "env." prefixes to NODE_BUILD_CMD and ELECTRON_BUILD_CMD --------- Co-authored-by: mceachen <[email protected]> Co-authored-by: Matthew McEachen <[email protected]>
1 parent c88ca6d commit aaa8850

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ jobs:
7171
with:
7272
node-version: 16
7373
- run: npm install --ignore-scripts
74-
- run: ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
75-
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
74+
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
75+
- run: ${{ env.ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
7676
- if: matrix.os == 'windows-2019'
77-
run: ${{ ELECTRON_BUILD_CMD }} --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
77+
run: ${{ env.ELECTRON_BUILD_CMD }} --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
7878
- if: matrix.os == 'macos-latest'
79-
run: ${{ ELECTRON_BUILD_CMD }} --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
79+
run: ${{ env.ELECTRON_BUILD_CMD }} --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
8080

8181
prebuild-alpine:
8282
name: Prebuild on alpine
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v3
8888
- run: apk add build-base git python3 --update-cache
8989
- run: npm install --ignore-scripts
90-
- run: ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
90+
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
9191

9292
prebuild-alpine-arm:
9393
strategy:
@@ -106,7 +106,7 @@ jobs:
106106
apk add build-base git python3 --update-cache && \
107107
cd /tmp/project && \
108108
npm install --ignore-scripts && \
109-
${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
109+
${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
110110
111111
prebuild-linux-arm:
112112
strategy:
@@ -124,4 +124,4 @@ jobs:
124124
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -c "\
125125
cd /tmp/project && \
126126
npm install --ignore-scripts && \
127-
${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
127+
${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)