mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 11:06:53 +08:00
Compare commits
2 Commits
v1.7
...
test/mac-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63a8389699 | ||
|
|
4b10f2b699 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
node_modules/
|
||||
__tests__/runner/*
|
||||
dist/
|
||||
!dist/
|
||||
|
||||
5206
dist/index.js
vendored
Normal file
5206
dist/index.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
dist/unzip
vendored
Normal file
BIN
dist/unzip
vendored
Normal file
Binary file not shown.
2
lib/installer.js
generated
2
lib/installer.js
generated
@@ -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
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "setup-julia",
|
||||
"version": "1.7.1",
|
||||
"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",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "setup-julia",
|
||||
"version": "1.7.1",
|
||||
"version": "1.7.2",
|
||||
"private": true,
|
||||
"description": "setup Julia action",
|
||||
"main": "lib/setup-julia.js",
|
||||
|
||||
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user