27
27
- name : Download custom source artifact
28
28
uses : actions/download-artifact@v4
29
29
with :
30
- name : custom-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }}
30
+ name : custom-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }}-${{ runner.arch }}
31
31
path : ${{ runner.temp }}
32
32
33
33
- name : Extract custom source artifact
@@ -122,29 +122,27 @@ runs:
122
122
fi
123
123
124
124
APPLICATION_VERSION="$(jq -r '.version' package.json)"
125
+ HOST_ARCH="$(echo "${RUNNER_ARCH}" | tr '[:upper:]' '[:lower:]')"
125
126
126
127
if [[ "${RUNNER_OS}" == Linux ]]; then
127
128
PLATFORM=Linux
128
- BUILD_ARCHS="x64"
129
129
SHA256SUM_BIN=sha256sum
130
130
131
131
elif [[ "${RUNNER_OS}" == macOS ]]; then
132
132
PLATFORM=Darwin
133
- BUILD_ARCHS="x64,arm64"
134
133
SHA256SUM_BIN='shasum -a 256'
135
134
136
135
elif [[ "${RUNNER_OS}" == Windows ]]; then
137
136
PLATFORM=Windows
138
137
SHA256SUM_BIN=sha256sum
139
- #BUILD_ARCHS="ia32,x64" -- distutils fails to build for ia32
140
- BUILD_ARCHS="x64"
141
138
142
139
else
143
140
echo "ERROR: unexpected runner OS: ${RUNNER_OS}"
144
141
exit 1
145
142
fi
146
143
147
- npx electron-forge make --arch="${BUILD_ARCHS}"
144
+ # Currently, we can only build for the host architecture.
145
+ npx electron-forge make
148
146
149
147
echo "version=${APPLICATION_VERSION}" >> $GITHUB_OUTPUT
150
148
@@ -162,7 +160,7 @@ runs:
162
160
if [[ -n "${SHA256SUM_BIN}" ]]; then
163
161
# Compute and save digests.
164
162
cd dist/
165
- ${SHA256SUM_BIN} *.* >"SHA256SUMS.${PLATFORM}.txt"
163
+ ${SHA256SUM_BIN} *.* >"SHA256SUMS.${PLATFORM}.${HOST_ARCH}. txt"
166
164
fi
167
165
env :
168
166
# ensure we sign the artifacts
@@ -181,7 +179,7 @@ runs:
181
179
- name : Upload artifacts
182
180
uses : actions/upload-artifact@v4
183
181
with :
184
- name : gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }}
182
+ name : gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }}-${{ runner.arch }}
185
183
path : dist
186
184
retention-days : 1
187
185
if-no-files-found : error
0 commit comments