Compare commits

...

3 Commits

Author SHA1 Message Date
Sascha Mann
63a8389699 Add production dependencies & build 2022-05-23 23:32:37 +02:00
Sascha Mann
4b10f2b699 Unmount dmg file on macOS after copying files 2022-05-23 23:31:02 +02:00
Sascha Mann
67db496725 Update default runtime to node16 (#103)
EOL was almost a month ago. Woops.

I don't care about people using an old version of GitHub Enterprise, so I'm not going to annoy every single user of this action with a breaking update like GH did with their core actions. If you're a user of GHE: consider this a breaking update.
2022-05-21 22:10:35 +02:00
8 changed files with 5217 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
node_modules/
__tests__/runner/*
dist/
!dist/

View File

@@ -19,7 +19,7 @@ outputs:
julia-bindir:
description: 'Path to the directory containing the Julia executable. Equivalent to JULIA_BINDIR: https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_BINDIR'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'download'

5206
dist/index.js vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
dist/unzip vendored Normal file

Binary file not shown.

2
lib/installer.js generated
View File

@@ -203,6 +203,8 @@ function installJulia(versionInfo, version, arch) {
case 'darwin':
yield exec.exec('hdiutil', ['attach', juliaDownloadPath]);
yield exec.exec('/bin/bash', ['-c', `cp -a /Volumes/Julia-*/Julia-*.app/Contents/Resources/julia ${tempInstallDir}`]);
// Unmount dmg file again to avoid issues on self-hosted runners
yield exec.exec('hdiutil', ['unmount', juliaDownloadPath]);
return path.join(tempInstallDir, 'julia');
default:
throw new Error(`Platform ${osPlat} is not supported`);

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "setup-julia",
"version": "1.7.0",
"version": "1.7.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "setup-julia",
"version": "1.6.1",
"version": "1.7.2",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.6",

View File

@@ -1,6 +1,6 @@
{
"name": "setup-julia",
"version": "1.7.0",
"version": "1.7.2",
"private": true,
"description": "setup Julia action",
"main": "lib/setup-julia.js",

View File

@@ -203,6 +203,10 @@ export async function installJulia(versionInfo, version: string, arch: string):
case 'darwin':
await exec.exec('hdiutil', ['attach', juliaDownloadPath])
await exec.exec('/bin/bash', ['-c', `cp -a /Volumes/Julia-*/Julia-*.app/Contents/Resources/julia ${tempInstallDir}`])
// Unmount dmg file again to avoid issues on self-hosted runners
await exec.exec('hdiutil', ['unmount', juliaDownloadPath])
return path.join(tempInstallDir, 'julia')
default:
throw new Error(`Platform ${osPlat} is not supported`)