mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-18 05:56:54 +08:00
Compare commits
2 Commits
test/mac-c
...
SaschaMann
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95439ffc11 | ||
|
|
87aef8bf11 |
5
.github/workflows/example-builds.yml
vendored
5
.github/workflows/example-builds.yml
vendored
@@ -29,11 +29,16 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
npm run pack
|
npm run pack
|
||||||
|
|
||||||
|
- run: mkdir -p ${{ github.workspace }}/dilumtestcache # TODO: delete this line
|
||||||
- name: "Set up Julia"
|
- name: "Set up Julia"
|
||||||
id: setup-julia
|
id: setup-julia
|
||||||
uses: ./
|
uses: ./
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: ${{ github.workspace }}/dilumtestcache
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.julia-version }}
|
version: ${{ matrix.julia-version }}
|
||||||
arch: ${{ matrix.julia-arch }}
|
arch: ${{ matrix.julia-arch }}
|
||||||
|
- run: which julia # TODO: delete this line
|
||||||
|
- run: which -a julia # TODO: delete this line
|
||||||
- run: julia --version
|
- run: julia --version
|
||||||
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
__tests__/runner/*
|
__tests__/runner/*
|
||||||
!dist/
|
dist/
|
||||||
|
|||||||
@@ -38,11 +38,7 @@ This action sets up a Julia environment for use in actions by downloading a spec
|
|||||||
|
|
||||||
# The architecture of the Julia binaries.
|
# The architecture of the Julia binaries.
|
||||||
#
|
#
|
||||||
# Please note that installing aarch64 binaries only makes sense on self-hosted aarch64 runners.
|
# Supported values: x64 | x86
|
||||||
# We currently don't run test builds on that architecture, so we cannot guarantee that the input won't break randomly,
|
|
||||||
# although there is no reason why it would.
|
|
||||||
#
|
|
||||||
# Supported values: x64 | x86 | aarch64 (untested)
|
|
||||||
#
|
#
|
||||||
# Default: x64
|
# Default: x64
|
||||||
arch: ''
|
arch: ''
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ outputs:
|
|||||||
julia-bindir:
|
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'
|
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:
|
runs:
|
||||||
using: 'node16'
|
using: 'node12'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
branding:
|
branding:
|
||||||
icon: 'download'
|
icon: 'download'
|
||||||
|
|||||||
5206
dist/index.js
vendored
5206
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
BIN
dist/unzip
vendored
BIN
dist/unzip
vendored
Binary file not shown.
5
lib/installer.js
generated
5
lib/installer.js
generated
@@ -32,8 +32,7 @@ const osMap = {
|
|||||||
};
|
};
|
||||||
const archMap = {
|
const archMap = {
|
||||||
'x86': 'i686',
|
'x86': 'i686',
|
||||||
'x64': 'x86_64',
|
'x64': 'x86_64'
|
||||||
'aarch64': 'aarch64'
|
|
||||||
};
|
};
|
||||||
// Store information about the environment
|
// Store information about the environment
|
||||||
const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
||||||
@@ -203,8 +202,6 @@ function installJulia(versionInfo, version, arch) {
|
|||||||
case 'darwin':
|
case 'darwin':
|
||||||
yield exec.exec('hdiutil', ['attach', juliaDownloadPath]);
|
yield exec.exec('hdiutil', ['attach', juliaDownloadPath]);
|
||||||
yield exec.exec('/bin/bash', ['-c', `cp -a /Volumes/Julia-*/Julia-*.app/Contents/Resources/julia ${tempInstallDir}`]);
|
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');
|
return path.join(tempInstallDir, 'julia');
|
||||||
default:
|
default:
|
||||||
throw new Error(`Platform ${osPlat} is not supported`);
|
throw new Error(`Platform ${osPlat} is not supported`);
|
||||||
|
|||||||
5
package-lock.json
generated
5
package-lock.json
generated
@@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-julia",
|
"name": "setup-julia",
|
||||||
"version": "1.7.2",
|
"version": "1.6.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "setup-julia",
|
"version": "1.6.1",
|
||||||
"version": "1.7.2",
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-julia",
|
"name": "setup-julia",
|
||||||
"version": "1.7.2",
|
"version": "1.6.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "setup Julia action",
|
"description": "setup Julia action",
|
||||||
"main": "lib/setup-julia.js",
|
"main": "lib/setup-julia.js",
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ const osMap = {
|
|||||||
}
|
}
|
||||||
const archMap = {
|
const archMap = {
|
||||||
'x86': 'i686',
|
'x86': 'i686',
|
||||||
'x64': 'x86_64',
|
'x64': 'x86_64'
|
||||||
'aarch64': 'aarch64'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store information about the environment
|
// Store information about the environment
|
||||||
@@ -203,10 +202,6 @@ export async function installJulia(versionInfo, version: string, arch: string):
|
|||||||
case 'darwin':
|
case 'darwin':
|
||||||
await exec.exec('hdiutil', ['attach', juliaDownloadPath])
|
await exec.exec('hdiutil', ['attach', juliaDownloadPath])
|
||||||
await exec.exec('/bin/bash', ['-c', `cp -a /Volumes/Julia-*/Julia-*.app/Contents/Resources/julia ${tempInstallDir}`])
|
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')
|
return path.join(tempInstallDir, 'julia')
|
||||||
default:
|
default:
|
||||||
throw new Error(`Platform ${osPlat} is not supported`)
|
throw new Error(`Platform ${osPlat} is not supported`)
|
||||||
|
|||||||
Reference in New Issue
Block a user