Skip to content

Use setup Julia #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,34 @@ inputs:
required: false
default: 'CompatHelper.main()'
ssh:
description: 'An SSH deploy key with write access on your repository'
description: 'An SSH deploy key with write access on your repository.'
required: false
default: ''
version:
description: 'Version of CompatHelper.jl to use'
compathelper_version:
description: 'Version of CompatHelper.jl to use.'
required: false
default: '3'
julia_version:
description: 'Version of Julia to use.'
required: false
default: '1'
julia_arch:
description: 'Architecture of the Julia binaries. Defaults to the architecture of the runner executing the job.'
required: false
default: '${{ runner.arch }}'

runs:
using: 'composite'
steps:
- run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
Pkg.Registry.update("General")
shell: julia --color=yes {0}
- uses: julia-actions/setup-julia@v1
with:
version: "${{ inputs.julia_version }}"
arch: "${{ inputs.julia_arch }}"
- run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "${{ inputs.version }}"
version = "${{ inputs.compathelper_version }}"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- run: |
Expand Down