@@ -40,12 +40,18 @@ jobs:
40
40
opam-pin : false
41
41
opam-depext : false
42
42
43
+ - name : " Install OPAM dependencies"
44
+ run : opam install . --deps-only
45
+
46
+ - name : " Build compiler (pass 1 - dev)"
47
+ run : opam exec -- dune build
48
+
43
49
- name : Use Node.js
44
50
uses : actions/setup-node@v3
45
51
with :
46
52
node-version : 16
47
53
48
- - name : NPM install
54
+ - name : Install npm packages
49
55
run : opam exec -- npm ci --ignore-scripts
50
56
51
57
- name : " Check if syntax subfolder has changed"
58
64
echo "syntax_status=changed" >> $GITHUB_ENV
59
65
fi
60
66
61
- - name : " Syntax: install OPAM dependencies"
62
- if : env.syntax_status == 'changed'
63
- run : opam install . --deps-only
64
-
65
- - name : " Syntax: build CLI"
66
- if : env.syntax_status == 'changed'
67
- run : opam exec -- dune build
68
-
69
67
- name : " Syntax: Run roundtrip tests"
70
68
if : ${{ env.syntax_status == 'changed' && runner.os != 'Windows' }}
71
69
run : opam exec -- make test-syntax-roundtrip
@@ -84,10 +82,13 @@ jobs:
84
82
- name : Build ninja
85
83
run : node scripts/buildNinjaBinary.js
86
84
87
- - name : Run install script
88
- run : opam exec -- node scripts/install.js
89
- env :
90
- RESCRIPT_FORCE_REBUILD : 1
85
+ - name : Build runtime/stdlib
86
+ # if: runner.os != 'Windows'
87
+ run : |
88
+ node scripts/copyExes.js
89
+ opam exec -- node ./scripts/ninja.js config
90
+ opam exec -- node ./scripts/ninja.js build
91
+ node scripts/prebuilt.js
91
92
92
93
- name : Run tests
93
94
if : runner.os != 'Windows'
@@ -113,17 +114,6 @@ jobs:
113
114
name : lib-ocaml
114
115
path : lib/ocaml
115
116
116
- # Important: the ninja build must run after the artifact upload because for some reason
117
- # the bsc.exe created by the ninja build does not find the Pervasives module.
118
- # So this is run here just to test the normal dev workflow, too.
119
- - name : ninja config
120
- if : runner.os != 'Windows'
121
- run : opam exec -- node ./scripts/ninja.js config
122
-
123
- - name : ninja build
124
- if : runner.os != 'Windows'
125
- run : opam exec -- node ./scripts/ninja.js build
126
-
127
117
- name : Check for changes in lib folder
128
118
run : git diff --exit-code lib/js lib/es6
129
119
0 commit comments