julia-actions / setup-julia

This action sets up a Julia environment for use in actions by downloading a specified version of Julia and adding it to PATH.
MIT License
93 stars 23 forks source link

Test builds are failing (except on macOS) #135

Closed SaschaMann closed 1 year ago

SaschaMann commented 1 year ago

Recently the nightly builds have started to fail, e.g. https://github.com/julia-actions/setup-julia/actions/runs/4255325653/jobs/7402784582

> ncc build

ncc: Version 0.22.3
ncc: Compiling file index.js
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at hashOf (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/index.js.cache.js:3:58216)
    at module.exports (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/index.js.cache.js:3:60642)
    at runCmd (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:47355)
    at 819 (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:44227)
    at __webpack_require__ (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:169)
    at startup (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:339)
    at module.exports.8 (/home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:371)
    at /home/runner/work/setup-julia/setup-julia/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:381 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

@sunoru do you happen to have any idea what causes this?

SaschaMann commented 1 year ago

It's all test builds, not just nightly

sunoru commented 1 year ago

Yes I do happen to know what is the matter here. This action is defined to run by node16 but recently they upgraded the default environment to v18. (https://github.com/actions/runner-images/issues/7002) It seems many people ran into problems due to this upgrade.

I'm looking into why it cannot be run with node v18. You can assign this issue to me and I'll file a PR for it.

sunoru commented 1 year ago

https://stackoverflow.com/a/69699772/2824258

We can just deprecate @zeit/ncc in favor of @vercel/ncc. (This is also suggested in the logs.)