diff --git a/lib/setup-julia.js b/lib/setup-julia.js index 5fcbea8..c93f9f7 100644 --- a/lib/setup-julia.js +++ b/lib/setup-julia.js @@ -82,7 +82,8 @@ function run() { exec.exec('julia', ['--version']); // If enabled, also show the full version info if (core.getInput('show-versioninfo') == 'true') { - exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']); + // --compile=min -O0 reduces the time from ~1.8-1.9s to ~0.8-0.9s + exec.exec('julia', ['--compile=min', '-O0', '-e', 'using InteractiveUtils; versioninfo()']); } } catch (error) { diff --git a/package-lock.json b/package-lock.json index 262e829..0592ddb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "setup-julia", - "version": "1.5.0", + "version": "1.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0896b9f..4b887d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-julia", - "version": "1.5.0", + "version": "1.5.1", "private": true, "description": "setup Julia action", "main": "lib/setup-julia.js", diff --git a/src/setup-julia.ts b/src/setup-julia.ts index 2c334bf..bf62727 100644 --- a/src/setup-julia.ts +++ b/src/setup-julia.ts @@ -79,7 +79,8 @@ async function run() { // If enabled, also show the full version info if (core.getInput('show-versioninfo') == 'true') { - exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']) + // --compile=min -O0 reduces the time from ~1.8-1.9s to ~0.8-0.9s + exec.exec('julia', ['--compile=min', '-O0', '-e', 'using InteractiveUtils; versioninfo()']) } } catch (error) { core.setFailed(error.message)