mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-16 13:06:55 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ec30d5641 |
1
.github/workflows/backup.yml
vendored
1
.github/workflows/backup.yml
vendored
@@ -9,7 +9,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
backup:
|
backup:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 60
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure cache
|
- name: Configure cache
|
||||||
|
|||||||
7
.github/workflows/checkin.yml
vendored
7
.github/workflows/checkin.yml
vendored
@@ -1,16 +1,9 @@
|
|||||||
name: "PR Checks"
|
name: "PR Checks"
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_pr:
|
check_pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
|||||||
7
.github/workflows/codeql-analysis.yml
vendored
7
.github/workflows/codeql-analysis.yml
vendored
@@ -11,12 +11,6 @@
|
|||||||
#
|
#
|
||||||
name: "CodeQL"
|
name: "CodeQL"
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, releases/* ]
|
branches: [ master, releases/* ]
|
||||||
@@ -30,7 +24,6 @@ jobs:
|
|||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
name: Example builds (default arch)
|
name: Example builds (default arch)
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['main', 'master', 'releases/*']
|
branches: ['main', 'master', 'releases/*']
|
||||||
@@ -15,7 +9,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 60
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
name: Example builds (nightly, default arch)
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ['main', 'master', 'releases/*']
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
timeout-minutes: 60
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
julia-version: [nightly, 1.8-nightly]
|
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1.0.0
|
|
||||||
|
|
||||||
- name: "Install dependencies"
|
|
||||||
run: |
|
|
||||||
npm install --legacy-peer-deps
|
|
||||||
npm run build
|
|
||||||
npm run pack
|
|
||||||
|
|
||||||
- name: "Set up Julia (${{ matrix.julia-version }})"
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
version: ${{ matrix.julia-version }}
|
|
||||||
- run: julia --version
|
|
||||||
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|
|
||||||
11
.github/workflows/example-builds-nightly.yml
vendored
11
.github/workflows/example-builds-nightly.yml
vendored
@@ -1,11 +1,5 @@
|
|||||||
name: Example builds (nightly)
|
name: Example builds (nightly)
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['main', 'master', 'releases/*']
|
branches: ['main', 'master', 'releases/*']
|
||||||
@@ -16,7 +10,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 60
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -27,10 +20,10 @@ jobs:
|
|||||||
exclude:
|
exclude:
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
julia-arch: x86
|
julia-arch: x86
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1.0.0
|
- uses: actions/checkout@v1.0.0
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
run: |
|
run: |
|
||||||
npm install --legacy-peer-deps
|
npm install --legacy-peer-deps
|
||||||
|
|||||||
9
.github/workflows/example-builds.yml
vendored
9
.github/workflows/example-builds.yml
vendored
@@ -1,11 +1,5 @@
|
|||||||
name: Example builds
|
name: Example builds
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# Skip intermediate builds: all builds except for builds on the `master`, `main`, or `release-*` branches
|
|
||||||
# Cancel intermediate builds: only pull request builds
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
|
|
||||||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['main', 'master', 'releases/*']
|
branches: ['main', 'master', 'releases/*']
|
||||||
@@ -15,7 +9,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 60
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -26,7 +19,7 @@ jobs:
|
|||||||
exclude:
|
exclude:
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
julia-arch: x86
|
julia-arch: x86
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1.0.0
|
- uses: actions/checkout@v1.0.0
|
||||||
|
|
||||||
|
|||||||
18
dist/index.js
vendored
18
dist/index.js
vendored
@@ -4153,14 +4153,6 @@ const fs = __importStar(__webpack_require__(747));
|
|||||||
const https = __importStar(__webpack_require__(211));
|
const https = __importStar(__webpack_require__(211));
|
||||||
const path = __importStar(__webpack_require__(622));
|
const path = __importStar(__webpack_require__(622));
|
||||||
const installer = __importStar(__webpack_require__(749));
|
const installer = __importStar(__webpack_require__(749));
|
||||||
const archSynonyms = {
|
|
||||||
'x86': 'x86',
|
|
||||||
'X86': 'x86',
|
|
||||||
'x64': 'x64',
|
|
||||||
'X64': 'x64',
|
|
||||||
'aarch64': 'aarch64',
|
|
||||||
'ARM64': 'aarch64'
|
|
||||||
};
|
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
@@ -4181,7 +4173,7 @@ function run() {
|
|||||||
}
|
}
|
||||||
// Inputs
|
// Inputs
|
||||||
const versionInput = core.getInput('version');
|
const versionInput = core.getInput('version');
|
||||||
const originalArchInput = core.getInput('arch');
|
const arch = core.getInput('arch');
|
||||||
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
||||||
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
||||||
// In that case, we want the action to fail, rather than trying to download julia from an URL that's missing parts and 404ing.
|
// In that case, we want the action to fail, rather than trying to download julia from an URL that's missing parts and 404ing.
|
||||||
@@ -4190,10 +4182,9 @@ function run() {
|
|||||||
if (!versionInput) {
|
if (!versionInput) {
|
||||||
throw new Error('Version input must not be null');
|
throw new Error('Version input must not be null');
|
||||||
}
|
}
|
||||||
if (!originalArchInput) {
|
if (!arch) {
|
||||||
throw new Error(`Arch input must not be null`);
|
throw new Error(`Arch input must not be null`);
|
||||||
}
|
}
|
||||||
const arch = archSynonyms[originalArchInput];
|
|
||||||
const versionInfo = yield installer.getJuliaVersionInfo();
|
const versionInfo = yield installer.getJuliaVersionInfo();
|
||||||
const availableReleases = yield installer.getJuliaVersions(versionInfo);
|
const availableReleases = yield installer.getJuliaVersions(versionInfo);
|
||||||
const version = installer.getJuliaVersion(availableReleases, versionInput);
|
const version = installer.getJuliaVersion(availableReleases, versionInput);
|
||||||
@@ -4277,8 +4268,11 @@ const osMap = {
|
|||||||
};
|
};
|
||||||
const archMap = {
|
const archMap = {
|
||||||
'x86': 'i686',
|
'x86': 'i686',
|
||||||
|
'X86': 'i686',
|
||||||
'x64': 'x86_64',
|
'x64': 'x86_64',
|
||||||
'aarch64': 'aarch64'
|
'X64': 'x86_64',
|
||||||
|
'aarch64': 'aarch64',
|
||||||
|
'ARM64': '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)
|
||||||
|
|||||||
5
lib/installer.js
generated
5
lib/installer.js
generated
@@ -32,8 +32,11 @@ const osMap = {
|
|||||||
};
|
};
|
||||||
const archMap = {
|
const archMap = {
|
||||||
'x86': 'i686',
|
'x86': 'i686',
|
||||||
|
'X86': 'i686',
|
||||||
'x64': 'x86_64',
|
'x64': 'x86_64',
|
||||||
'aarch64': 'aarch64'
|
'X64': 'x86_64',
|
||||||
|
'aarch64': 'aarch64',
|
||||||
|
'ARM64': '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)
|
||||||
|
|||||||
13
lib/setup-julia.js
generated
13
lib/setup-julia.js
generated
@@ -21,14 +21,6 @@ const fs = __importStar(require("fs"));
|
|||||||
const https = __importStar(require("https"));
|
const https = __importStar(require("https"));
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
const installer = __importStar(require("./installer"));
|
const installer = __importStar(require("./installer"));
|
||||||
const archSynonyms = {
|
|
||||||
'x86': 'x86',
|
|
||||||
'X86': 'x86',
|
|
||||||
'x64': 'x64',
|
|
||||||
'X64': 'x64',
|
|
||||||
'aarch64': 'aarch64',
|
|
||||||
'ARM64': 'aarch64'
|
|
||||||
};
|
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
@@ -49,7 +41,7 @@ function run() {
|
|||||||
}
|
}
|
||||||
// Inputs
|
// Inputs
|
||||||
const versionInput = core.getInput('version');
|
const versionInput = core.getInput('version');
|
||||||
const originalArchInput = core.getInput('arch');
|
const arch = core.getInput('arch');
|
||||||
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
||||||
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
||||||
// In that case, we want the action to fail, rather than trying to download julia from an URL that's missing parts and 404ing.
|
// In that case, we want the action to fail, rather than trying to download julia from an URL that's missing parts and 404ing.
|
||||||
@@ -58,10 +50,9 @@ function run() {
|
|||||||
if (!versionInput) {
|
if (!versionInput) {
|
||||||
throw new Error('Version input must not be null');
|
throw new Error('Version input must not be null');
|
||||||
}
|
}
|
||||||
if (!originalArchInput) {
|
if (!arch) {
|
||||||
throw new Error(`Arch input must not be null`);
|
throw new Error(`Arch input must not be null`);
|
||||||
}
|
}
|
||||||
const arch = archSynonyms[originalArchInput];
|
|
||||||
const versionInfo = yield installer.getJuliaVersionInfo();
|
const versionInfo = yield installer.getJuliaVersionInfo();
|
||||||
const availableReleases = yield installer.getJuliaVersions(versionInfo);
|
const availableReleases = yield installer.getJuliaVersions(versionInfo);
|
||||||
const version = installer.getJuliaVersion(availableReleases, versionInput);
|
const version = installer.getJuliaVersion(availableReleases, versionInput);
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-julia",
|
"name": "setup-julia",
|
||||||
"version": "1.8.1",
|
"version": "1.8.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "setup-julia",
|
"name": "setup-julia",
|
||||||
"version": "1.8.1",
|
"version": "1.8.0",
|
||||||
"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.8.1",
|
"version": "1.8.0",
|
||||||
"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,11 @@ const osMap = {
|
|||||||
}
|
}
|
||||||
const archMap = {
|
const archMap = {
|
||||||
'x86': 'i686',
|
'x86': 'i686',
|
||||||
|
'X86': 'i686',
|
||||||
'x64': 'x86_64',
|
'x64': 'x86_64',
|
||||||
'aarch64': 'aarch64'
|
'X64': 'x86_64',
|
||||||
|
'aarch64': 'aarch64',
|
||||||
|
'ARM64': 'aarch64'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store information about the environment
|
// Store information about the environment
|
||||||
|
|||||||
@@ -8,15 +8,6 @@ import * as path from 'path'
|
|||||||
|
|
||||||
import * as installer from './installer'
|
import * as installer from './installer'
|
||||||
|
|
||||||
const archSynonyms = {
|
|
||||||
'x86': 'x86',
|
|
||||||
'X86': 'x86',
|
|
||||||
'x64': 'x64',
|
|
||||||
'X64': 'x64',
|
|
||||||
'aarch64': 'aarch64',
|
|
||||||
'ARM64': 'aarch64'
|
|
||||||
}
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
// Debugging info
|
// Debugging info
|
||||||
@@ -39,7 +30,7 @@ async function run() {
|
|||||||
|
|
||||||
// Inputs
|
// Inputs
|
||||||
const versionInput = core.getInput('version')
|
const versionInput = core.getInput('version')
|
||||||
const originalArchInput = core.getInput('arch')
|
const arch = core.getInput('arch')
|
||||||
|
|
||||||
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
||||||
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
||||||
@@ -49,12 +40,10 @@ async function run() {
|
|||||||
if (!versionInput) {
|
if (!versionInput) {
|
||||||
throw new Error('Version input must not be null')
|
throw new Error('Version input must not be null')
|
||||||
}
|
}
|
||||||
if (!originalArchInput) {
|
if (!arch) {
|
||||||
throw new Error(`Arch input must not be null`)
|
throw new Error(`Arch input must not be null`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const arch = archSynonyms[originalArchInput]
|
|
||||||
|
|
||||||
const versionInfo = await installer.getJuliaVersionInfo()
|
const versionInfo = await installer.getJuliaVersionInfo()
|
||||||
const availableReleases = await installer.getJuliaVersions(versionInfo)
|
const availableReleases = await installer.getJuliaVersions(versionInfo)
|
||||||
const version = installer.getJuliaVersion(availableReleases, versionInput)
|
const version = installer.getJuliaVersion(availableReleases, versionInput)
|
||||||
|
|||||||
Reference in New Issue
Block a user