9
9
moving :
10
10
required : true
11
11
type : string
12
+ julia_repo :
13
+ required : true
14
+ type : string
15
+ julia_ref :
16
+ required : true
17
+ type : string
12
18
13
19
jobs :
14
20
build-debug :
@@ -17,26 +23,76 @@ jobs:
17
23
- uses : actions/checkout@v2
18
24
- name : Setup environments
19
25
run : |
20
- ./.github/scripts/ci-checkout.sh
26
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
21
27
./.github/scripts/ci-setup.sh
22
28
# removing these as they cause a conflict within bindgen
23
- sudo rm -rf /usr/lib/llvm-14
29
+ sudo rm -rf /usr/lib/llvm-14
30
+ sudo rm -rf /usr/lib/llvm-13
31
+ - name : Build Julia (Debug)
32
+ run : |
33
+ ./.github/scripts/ci-build.sh debug ${{ inputs.gc_plan }} ${{ inputs.moving }}
34
+ - name : Print Julia version info
35
+ run : |
36
+ JULIA_PATH=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia/vm/julia
37
+ $JULIA_PATH/julia --project=. -e "using InteractiveUtils; versioninfo()"
38
+ - name : Style check
39
+ run : |
40
+ ./.github/scripts/ci-style.sh
41
+
42
+ build-debug-regen-ffi :
43
+ runs-on : ubuntu-22.04
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ - name : Setup environments
47
+ run : |
48
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
49
+ ./.github/scripts/ci-setup.sh
50
+ # removing these as they cause a conflict within bindgen
51
+ sudo rm -rf /usr/lib/llvm-14
24
52
sudo rm -rf /usr/lib/llvm-13
53
+ - name : Check FFI bindings
54
+ run : |
55
+ ./.github/scripts/ci-ffi.sh
25
56
- name : Build Julia (Debug)
26
57
run : |
27
58
./.github/scripts/ci-build.sh debug ${{ inputs.gc_plan }} ${{ inputs.moving }}
59
+ - name : Print Julia version info
60
+ run : |
61
+ JULIA_PATH=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia/vm/julia
62
+ $JULIA_PATH/julia --project=. -e "using InteractiveUtils; versioninfo()"
28
63
- name : Style check
29
64
run : |
30
65
./.github/scripts/ci-style.sh
31
66
67
+ check-ffi :
68
+ runs-on : ubuntu-22.04
69
+ steps :
70
+ - uses : actions/checkout@v2
71
+ - name : Setup environments
72
+ run : |
73
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
74
+ ./.github/scripts/ci-setup.sh
75
+ # removing these as they cause a conflict within bindgen
76
+ sudo rm -rf /usr/lib/llvm-14
77
+ sudo rm -rf /usr/lib/llvm-13
78
+ - name : Regenerate FFI bindings
79
+ run : |
80
+ ./.github/scripts/ci-ffi.sh
81
+ - run : |
82
+ MMTK_JULIA_DIR=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia
83
+ if ! git diff --exit-code $MMTK_JULIA_DIR/mmtk/src/julia_types.rs; then
84
+ echo "Rust FFI bindings in \`julia_types.rs\` are outdated. Run \`make regen-bindgen-ffi\` from the mmtk-julia directory and make sure to include the updated file in the pull request."
85
+ exit 1
86
+ fi
87
+
32
88
build-test-other :
33
89
runs-on : ubuntu-22.04
34
90
timeout-minutes : 360
35
91
steps :
36
92
- uses : actions/checkout@v2
37
93
- name : Setup environments
38
94
run : |
39
- ./.github/scripts/ci-checkout.sh
95
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
40
96
./.github/scripts/ci-setup.sh
41
97
# removing these as they cause a conflict within bindgen
42
98
sudo rm -rf /usr/lib/llvm-14
@@ -47,6 +103,10 @@ jobs:
47
103
- name : Build Julia (Release)
48
104
run : |
49
105
./.github/scripts/ci-build.sh release ${{ inputs.gc_plan }} ${{ inputs.moving }}
106
+ - name : Print Julia version info
107
+ run : |
108
+ JULIA_PATH=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia/vm/julia
109
+ $JULIA_PATH/julia --project=. -e "using InteractiveUtils; versioninfo()"
50
110
- name : Test Julia
51
111
run : |
52
112
./.github/scripts/ci-test-other.sh
58
118
- uses : actions/checkout@v2
59
119
- name : Setup environments
60
120
run : |
61
- ./.github/scripts/ci-checkout.sh
121
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
62
122
./.github/scripts/ci-setup.sh
63
123
# removing these as they cause a conflict within bindgen
64
124
sudo rm -rf /usr/lib/llvm-14
@@ -69,6 +129,10 @@ jobs:
69
129
- name : Build Julia (Release)
70
130
run : |
71
131
./.github/scripts/ci-build.sh release ${{ inputs.gc_plan }} ${{ inputs.moving }}
132
+ - name : Print Julia version info
133
+ run : |
134
+ JULIA_PATH=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia/vm/julia
135
+ $JULIA_PATH/julia --project=. -e "using InteractiveUtils; versioninfo()"
72
136
- name : Test Julia
73
137
run : |
74
138
./.github/scripts/ci-test-stdlib.sh
@@ -80,14 +144,18 @@ jobs:
80
144
- uses : actions/checkout@v2
81
145
- name : Setup environments
82
146
run : |
83
- ./.github/scripts/ci-checkout.sh
147
+ ./.github/scripts/ci-checkout.sh ${{ inputs.julia_repo }} ${{ inputs.julia_ref }}
84
148
./.github/scripts/ci-setup.sh
85
149
# removing these as they cause a conflict within bindgen
86
150
sudo rm -rf /usr/lib/llvm-14
87
151
sudo rm -rf /usr/lib/llvm-13
88
152
- name : Build Julia (Release)
89
153
run : |
90
154
./.github/scripts/ci-build.sh release ${{ inputs.gc_plan }} ${{ inputs.moving }}
155
+ - name : Print Julia version info
156
+ run : |
157
+ JULIA_PATH=$(realpath $(dirname "$0"))/../mmtk-julia/mmtk-julia/vm/julia
158
+ $JULIA_PATH/julia --project=. -e "using InteractiveUtils; versioninfo()"
91
159
- name : Test Julia
92
160
run : |
93
161
./.github/scripts/ci-test-LinearAlgebra.sh
0 commit comments