You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install libsecret dependency in Linux GitHub Actions runner
On Linux, Arduino IDE has a transitive depency on the "libsecret" library, via node-gyp.
Previous Linux GitHub Actions runner machine images included libsecret, and so previously the workflows that install the
Arduino IDE dependencies did not have any provision for installation of libsecret. libsecret was not included in the
"ubuntu-24.04" image. The "ubuntu-latest" runner used by the repository's GitHub Actions workflows was recently updated
to use the "ubuntu-24.04" image. This caused the dependencies installation to fail:
```
Package libsecret-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsecret-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsecret-1', required by 'virtual:world', not found
gyp: Call to 'pkg-config --cflags libsecret-1' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/runner/work/arduino-ide/arduino-ide/node_modules/node-gyp/lib/configure.js:325:16)
gyp ERR! stack at ChildProcess.emit (node:events:514:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 6.8.0-1021-azure
gyp ERR! command "/opt/hostedtoolcache/node/18.17.1/x64/bin/node" "/home/runner/work/arduino-ide/arduino-ide/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/runner/work/arduino-ide/arduino-ide/node_modules/keytar
gyp ERR! node -v v18.17.1
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok
```
The failure is fixed by configuring the relevant workflows to explicitly install the "libsecret-1-dev" Debian package
that provides the library.
0 commit comments