Cannot build on GitHub Actions runner "ubuntu-latest" #994

Open
opened 2026-01-29 16:54:07 +00:00 by claunia · 0 comments
Owner

Originally created by @mu88 on GitHub (Nov 3, 2025).

  • Version: v0.1.0-pre.136
  • Target: win-x64

Steps to Reproduce:

  1. Clone this commit
  2. Publish the app via dotnet publish FotoManager/FotoManager.csproj -p:PublishProfile=win-x64

The build fails with:

1  failedTask=build stackTrace=Error: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
  Exit code:
  1
      at ChildProcess.<anonymous> (/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/builder-util/src/util.ts:259:14)
      at Object.onceWrapper (node:events:639:26)
      at ChildProcess.emit (node:events:524:28)
      at maybeClose (node:internal/child_process:1104:16)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

I was hoping to get rid of the limitation to build on Windows-only with the new approach.

Full log
Determining projects to restore...
Restored /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManagerLogic/FotoManagerLogic.csproj (in 2.25 sec).
Restored /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/FotoManager.csproj (in 5.18 sec).
FotoManagerLogic -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManagerLogic/bin/Release/net9.0/win-x64/FotoManagerLogic.dll
Creating package.json from template...
OutDir: bin/Release/net9.0/win-x64/
EnsureElectronBuilderJson: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/Properties/
EnsureElectronBuilderJson: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/Properties/electron-builder.json
EnsureElectronBuilderJson: False
_ElectronFiles: 
_ElectronFilesToCopy: 
FotoManager -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/bin/Release/net9.0/win-x64/FotoManager.dll
Running command: npm install --no-bin-links in folder:  /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/bin/Release/net9.0/win-x64/.electron/
npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.

added 194 packages, and audited 196 packages in 14s

38 packages are looking for funding
  run `npm fund` for details

1 moderate severity vulnerability

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
BeforePublishElectronApp PublishDir: publish\Release/net9.0/win-x64/
BeforePublishElectronApp PublishDir: publish\Release/net9.0/win-x64/bin/
FotoManager -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/bin/
_ElectronFilesToCopyWithTargetPath: 
CopiedFiles: publish/Release/net9.0/win-x64/bin/.electron/package.json
ElectronPublishFilesToMove: publish/Release/net9.0/win-x64/bin/.electron/api/app.js;publish/Release/net9.0/win-x64/bin/.electron/api/autoUpdater.js;publish/Release/net9.0/win-x64/bin/.electron/api/browserView.js;publish/Release/net9.0/win-x64/bin/.electron/api/browserWindows.js;publish/Release/net9.0/win-x64/bin/.electron/api/clipboard.js;publish/Release/net9.0/win-x64/bin/.electron/api/commandLine.js;publish/Release/net9.0/win-x64/bin/.electron/api/dialog.js;publish/Release/net9.0/win-x64/bin/.electron/api/dock.js;publish/Release/net9.0/win-x64/bin/.electron/api/globalShortcut.js;publish/Release/net9.0/win-x64/bin/.electron/api/ipc.js;publish/Release/net9.0/win-x64/bin/.electron/api/menu.js;publish/Release/net9.0/win-x64/bin/.electron/api/nativeTheme.js;publish/Release/net9.0/win-x64/bin/.electron/api/notification.js;publish/Release/net9.0/win-x64/bin/.electron/api/powerMonitor.js;publish/Release/net9.0/win-x64/bin/.electron/api/screen.js;publish/Release/net9.0/win-x64/bin/.electron/api/shell.js;publish/Release/net9.0/win-x64/bin/.electron/api/tray.js;publish/Release/net9.0/win-x64/bin/.electron/api/webContents.js;publish/Release/net9.0/win-x64/bin/.electron/ElectronHostHook/connector.js;publish/Release/net9.0/win-x64/bin/.electron/ElectronHostHook/index.js;publish/Release/net9.0/win-x64/bin/.electron/main.js;publish/Release/net9.0/win-x64/bin/.electron/package.json;publish/Release/net9.0/win-x64/bin/.electron/splashscreen/index.html
ElectronPublishApp: ElectronPublishDirFullPath - /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/
npm warn skipping integrity check for git dependency ssh://git@github.com/electron/node-gyp.git
npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported

added 466 packages, and audited 468 packages in 15s

79 packages are looking for funding
  run `npm fund` for details

1 moderate severity vulnerability

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
  • electron-builder  version=26.0.12 os=6.11.0-1018-azure
  • artifacts will be published if draft release exists  reason=CI detected
  • loaded configuration  file=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/electron-builder.json
  • description is missed in the package.json  appPackageFile=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/package.json
  • executing @electron/rebuild  electronVersion=30.4.0 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=win32 arch=x64 electron=30.4.0 appOutDir=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v30.4.0/electron-v30.4.0-win32-x64.zip size=109 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v30.4.0/electron-v30.4.0-win32-x64.zip duration=504ms
  • updating asar integrity executable resource  executablePath=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/FotoFlipper.exe
  • signing with signtool.exe  path=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/resources/bin/FotoManager.exe
  • signing with signtool.exe  path=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/resources/bin/createdump.exe
  • default Electron icon is used  reason=application icon is not set
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=138ms
  ⨯ wine is required, please see https://electron.build/multi-platform-build#linux  
  ⨯ /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1  failedTask=build stackTrace=Error: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
    at ChildProcess.<anonymous> (/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/builder-util/src/util.ts:259:14)
    at Object.onceWrapper (node:events:639:26)
    at ChildProcess.emit (node:events:524:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
/home/runner/.nuget/packages/electronnet.core/0.1.0-pre.136/build/ElectronNET.LateImport.targets(468,5): error MSB3073: The command "npx electron-builder --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0  -c.appId "fotomanager" -c.buildVersion "0.0.1" -c.copyright "Copyright © 2025" -c.extraResources "bin/**/*"" exited with code 1. [/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/FotoManager.csproj]
Error: Process completed with exit code 1.
Originally created by @mu88 on GitHub (Nov 3, 2025). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: `v0.1.0-pre.136` <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: `win-x64` <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Clone [this commit](https://github.com/mu88/BlazorFotoManager/commit/fb946473a2acf23c5c723c4a52c80437d44cfa6e) 2. Publish the app via `dotnet publish FotoManager/FotoManager.csproj -p:PublishProfile=win-x64` The build fails with: ```shell 1 failedTask=build stackTrace=Error: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 at ChildProcess.<anonymous> (/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/builder-util/src/util.ts:259:14) at Object.onceWrapper (node:events:639:26) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) ``` I was hoping to get rid of the limitation to build on Windows-only with the new approach. <details> <summary>Full log</summary> ```shell Determining projects to restore... Restored /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManagerLogic/FotoManagerLogic.csproj (in 2.25 sec). Restored /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/FotoManager.csproj (in 5.18 sec). FotoManagerLogic -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManagerLogic/bin/Release/net9.0/win-x64/FotoManagerLogic.dll Creating package.json from template... OutDir: bin/Release/net9.0/win-x64/ EnsureElectronBuilderJson: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/Properties/ EnsureElectronBuilderJson: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/Properties/electron-builder.json EnsureElectronBuilderJson: False _ElectronFiles: _ElectronFilesToCopy: FotoManager -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/bin/Release/net9.0/win-x64/FotoManager.dll Running command: npm install --no-bin-links in folder: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/bin/Release/net9.0/win-x64/.electron/ npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. added 194 packages, and audited 196 packages in 14s 38 packages are looking for funding run `npm fund` for details 1 moderate severity vulnerability To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. BeforePublishElectronApp PublishDir: publish\Release/net9.0/win-x64/ BeforePublishElectronApp PublishDir: publish\Release/net9.0/win-x64/bin/ FotoManager -> /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/bin/ _ElectronFilesToCopyWithTargetPath: CopiedFiles: publish/Release/net9.0/win-x64/bin/.electron/package.json ElectronPublishFilesToMove: publish/Release/net9.0/win-x64/bin/.electron/api/app.js;publish/Release/net9.0/win-x64/bin/.electron/api/autoUpdater.js;publish/Release/net9.0/win-x64/bin/.electron/api/browserView.js;publish/Release/net9.0/win-x64/bin/.electron/api/browserWindows.js;publish/Release/net9.0/win-x64/bin/.electron/api/clipboard.js;publish/Release/net9.0/win-x64/bin/.electron/api/commandLine.js;publish/Release/net9.0/win-x64/bin/.electron/api/dialog.js;publish/Release/net9.0/win-x64/bin/.electron/api/dock.js;publish/Release/net9.0/win-x64/bin/.electron/api/globalShortcut.js;publish/Release/net9.0/win-x64/bin/.electron/api/ipc.js;publish/Release/net9.0/win-x64/bin/.electron/api/menu.js;publish/Release/net9.0/win-x64/bin/.electron/api/nativeTheme.js;publish/Release/net9.0/win-x64/bin/.electron/api/notification.js;publish/Release/net9.0/win-x64/bin/.electron/api/powerMonitor.js;publish/Release/net9.0/win-x64/bin/.electron/api/screen.js;publish/Release/net9.0/win-x64/bin/.electron/api/shell.js;publish/Release/net9.0/win-x64/bin/.electron/api/tray.js;publish/Release/net9.0/win-x64/bin/.electron/api/webContents.js;publish/Release/net9.0/win-x64/bin/.electron/ElectronHostHook/connector.js;publish/Release/net9.0/win-x64/bin/.electron/ElectronHostHook/index.js;publish/Release/net9.0/win-x64/bin/.electron/main.js;publish/Release/net9.0/win-x64/bin/.electron/package.json;publish/Release/net9.0/win-x64/bin/.electron/splashscreen/index.html ElectronPublishApp: ElectronPublishDirFullPath - /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/ npm warn skipping integrity check for git dependency ssh://git@github.com/electron/node-gyp.git npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 466 packages, and audited 468 packages in 15s 79 packages are looking for funding run `npm fund` for details 1 moderate severity vulnerability To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. • electron-builder version=26.0.12 os=6.11.0-1018-azure • artifacts will be published if draft release exists reason=CI detected • loaded configuration file=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/electron-builder.json • description is missed in the package.json appPackageFile=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/package.json • executing @electron/rebuild electronVersion=30.4.0 arch=x64 buildFromSource=false appDir=./ • installing native dependencies arch=x64 • completed installing native dependencies • packaging platform=win32 arch=x64 electron=30.4.0 appOutDir=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked • downloading url=https://github.com/electron/electron/releases/download/v30.4.0/electron-v30.4.0-win32-x64.zip size=109 MB parts=8 • downloaded url=https://github.com/electron/electron/releases/download/v30.4.0/electron-v30.4.0-win32-x64.zip duration=504ms • updating asar integrity executable resource executablePath=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/FotoFlipper.exe • signing with signtool.exe path=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/resources/bin/FotoManager.exe • signing with signtool.exe path=/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/bin/Desktop/win-unpacked/resources/bin/createdump.exe • default Electron icon is used reason=application icon is not set • downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1 • downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=138ms ⨯ wine is required, please see https://electron.build/multi-platform-build#linux ⨯ /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 failedTask=build stackTrace=Error: /home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 at ChildProcess.<anonymous> (/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/publish/Release/net9.0/win-x64/node_modules/builder-util/src/util.ts:259:14) at Object.onceWrapper (node:events:639:26) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) /home/runner/.nuget/packages/electronnet.core/0.1.0-pre.136/build/ElectronNET.LateImport.targets(468,5): error MSB3073: The command "npx electron-builder --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0 -c.appId "fotomanager" -c.buildVersion "0.0.1" -c.copyright "Copyright © 2025" -c.extraResources "bin/**/*"" exited with code 1. [/home/runner/work/BlazorFotoManager/BlazorFotoManager/FotoManager/FotoManager.csproj] Error: Process completed with exit code 1. ``` </details>
claunia added the bug label 2026-01-29 16:54:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#994