-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
51 lines (43 loc) · 1.17 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build Julia
description: Build Julia from source for a given commit.
author: Sascha Mann
branding:
icon: cpu
color: purple
inputs:
ref:
description: Value passed to git checkout.
default: master
required: false
source-repo:
description: Value passed to git clone.
default: https://github.com/JuliaLang/julia.git
required: false
target-dir:
description: Directory that Julia will be installed in
default: $HOME/julia
required: false
runs:
using: composite
steps:
- name: Clone Julia
run: git clone ${{ inputs.source-repo }} "${{ inputs.target-dir }}"
shell: bash
- name: Checkout ref
run: |
cd "${{ inputs.target-dir }}"
git checkout ${{ inputs.ref }}
shell: bash
- name: Build Julia
run: |
cd "${{ inputs.target-dir }}"
# GHA runners don't all run on the same hardware
# Not specifying a CPU target can lead to issues when caching the build output
echo "JULIA_CPU_TARGET=x86_64" >> Make.user
make -j 2
shell: bash
- name: Print Version
run: |
cd "${{ inputs.target-dir }}"
./julia --version
shell: bash