File tree 11 files changed +48
-126
lines changed
11 files changed +48
-126
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ concurrency:
13
13
14
14
env :
15
15
OCAMLRUNPARAM : b
16
- DUNE_PROFILE : release
17
16
18
17
jobs :
19
18
# Build statically linked Linux binaries in an Alpine-based Docker container
31
30
- name : Checkout
32
31
uses : actions/checkout@v3
33
32
34
- - name : Apply static linking patch
35
- run : git apply scripts/dune-static-linking.patch
36
-
37
33
- name : Build compiler binaries
38
- run : opam exec -- dune build
34
+ run : opam exec -- dune build --profile static
39
35
40
36
- name : Build ninja binary
41
37
working-directory : ninja
63
59
runs-on : ${{matrix.os}}
64
60
65
61
env :
66
- OCAMLRUNPARAM : b
67
62
DUNE_PROFILE : release
68
63
69
64
steps :
@@ -137,11 +132,11 @@ jobs:
137
132
138
133
- name : " Syntax: Run roundtrip tests"
139
134
if : ${{ env.syntax_status == 'changed' && runner.os != 'Windows' }}
140
- run : make test-syntax-roundtrip
135
+ run : opam exec -- make test-syntax-roundtrip
141
136
142
137
- name : " Syntax: Run tests (Windows)"
143
138
if : ${{ env.syntax_status == 'changed' && runner.os == 'Windows' }}
144
- run : make test-syntax
139
+ run : opam exec -- make test-syntax
145
140
146
141
- name : Build runtime/stdlib
147
142
if : runner.os != 'Windows'
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name rescript_main)
3
8
(public_name rescript)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name bsb_helper_main)
3
8
(public_name bsb_helper)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name rescript_compiler_main)
3
8
(public_name bsc)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executables
2
7
(names cmij_main cmjdump_main)
3
8
(public_names cmij cmjdump)
Original file line number Diff line number Diff line change 7
7
(env-vars
8
8
(CPPO_FLAGS -U=RELEASE)))
9
9
(release
10
+ (env-vars
11
+ (CPPO_FLAGS -D=RELEASE))
12
+ (ocamlopt_flags
13
+ (:standard -O3 -unbox-closures)))
14
+ (static
10
15
(env-vars
11
16
(CPPO_FLAGS -D=RELEASE))
12
17
(ocamlopt_flags
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name ounit_tests_main)
3
8
(public_name ounit_tests)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name benchmark)
3
8
(public_name syntax_benchmarks)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name res_cli)
3
8
(public_name res_parser)
Original file line number Diff line number Diff line change
1
+ (env
2
+ (static
3
+ (flags
4
+ (:standard -ccopt -static))))
5
+
1
6
(executable
2
7
(name res_test)
3
8
(public_name syntax_tests)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments