mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-19 12:57:17 +00:00
Remove redundant signing determination code from build system
The "build" workflow signs the macOS and Windows builds of the application. The signing process relies on access to GitHub Actions secrets. For this reason, the workflow is configured to only sign the builds when it has access to GitHub Actions secrets to avoid spurious failures of the workflow that would otherwise be caused by signing failure. A flexible general purpose system for determining whether to attempt signing of a build was established years ago. However, a redundant system was added specific to the Windows build instead of using the existing system. The redundant system is hereby removed. This makes the workflow easier to understand and maintain.
This commit is contained in:
parent
f72d1f0ac8
commit
4f8b9800a0
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -290,7 +290,6 @@ jobs:
|
||||
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
|
||||
WIN_CERT_PASSWORD: ${{ secrets[matrix.config.certificate-password-secret] }}
|
||||
WIN_CERT_CONTAINER_NAME: ${{ secrets[matrix.config.certificate-container] }}
|
||||
WIN_SIGNING_ENABLED: ${{ secrets[matrix.config.certificate-password-secret] != '' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -1,10 +1,7 @@
|
||||
const childProcess = require('child_process');
|
||||
|
||||
exports.default = async function (configuration) {
|
||||
if (
|
||||
!process.env.GITHUB_ACTIONS ||
|
||||
process.env.WIN_SIGNING_ENABLED !== 'true'
|
||||
) {
|
||||
if (!process.env.GITHUB_ACTIONS || process.env.CAN_SIGN !== 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user