@@ -135,6 +135,10 @@ jobs:
135135 if : matrix.id == 'normal'
136136 run : |
137137 MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh install
138+ - name : Test in prefix
139+ if : matrix.id == 'normal'
140+ run : |
141+ MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh test-in-prefix
138142 - name : Build the manual
139143 if : matrix.id == 'normal' && needs.build.outputs.manual_changed == 'true'
140144 run : |
@@ -160,9 +164,12 @@ jobs:
160164 let jobs = [
161165 {name: 'linux-O0', os: 'ubuntu-latest',
162166 config_arg: "CFLAGS='-O0'"},
163- {name: 'linux-arm64', os: 'ubuntu-24.04-arm'},
164- {name: 'macos-x86_64', os: 'macos-15-intel'},
165- {name: 'macos-arm64', os: 'macos-latest'}];
167+ {name: 'linux-arm64', os: 'ubuntu-24.04-arm',
168+ 'test-in-prefix': true},
169+ {name: 'macos-x86_64', os: 'macos-15-intel',
170+ 'test-in-prefix': true},
171+ {name: 'macos-arm64', os: 'macos-latest',
172+ 'test-in-prefix': true}];
166173 // # If this is a pull request, see if the PR has the
167174 // # 'CI: Full matrix' label. This is done using an API request,
168175 // # rather than from context.payload.pull_request.labels, since we
@@ -178,9 +185,10 @@ jobs:
178185 // # Add "static" and "minimal" jobs
179186 jobs = jobs.concat([
180187 {name: 'static', os: 'ubuntu-latest',
181- config_arg: '--disable-shared'},
188+ config_arg: '--disable-native-toplevel --disable-shared',
189+ 'test-in-prefix': true},
182190 {name: 'minimal', os: 'ubuntu-latest',
183- config_arg: '--disable-native-compiler --disable-shared --disable-debug-runtime --disable-instrumented-runtime --disable-systhreads --disable-str-lib --disable-unix-lib --disable-ocamldoc'}]);
191+ config_arg: '--disable-native-toplevel --disable-native- compiler --disable-shared --disable-debug-runtime --disable-instrumented-runtime --disable-systhreads --disable-str-lib --disable-unix-lib --disable-ocamldoc'}]);
184192 }
185193 }
186194 return jobs;
@@ -234,6 +242,14 @@ jobs:
234242 for dir in $PARALLEL_TESTS; do \
235243 bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test_prefix $dir"; \
236244 done
245+ - name : Install
246+ if : ${{ matrix.test-in-prefix }}
247+ run : |
248+ MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh install
249+ - name : Test in prefix
250+ if : ${{ matrix.test-in-prefix }}
251+ run : |
252+ MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh test-in-prefix
237253
238254 i386 :
239255 runs-on : ubuntu-latest
@@ -253,11 +269,17 @@ jobs:
253269 - name : configure tree
254270 run : |
255271 chown -R ocaml:ocaml .
256- MAKE_ARG=-j su ocaml -c "bash -xe tools/ci/actions/runner.sh configure"
272+ MAKE_ARG=-j CONFIG_ARG='--disable-native-toplevel' su ocaml -c "bash -xe tools/ci/actions/runner.sh configure"
257273 - name : Build
258274 run : |
259275 MAKE_ARG=-j su ocaml -c "bash -xe tools/ci/actions/runner.sh build"
260276 - name : Run the testsuite
261277 if : ${{ needs.config.outputs.skip-testsuite != 'true' }}
262278 run : |
263279 su ocaml -c "bash -xe tools/ci/actions/runner.sh test"
280+ - name : Install
281+ run : |
282+ su ocaml -c "bash -xe tools/ci/actions/runner.sh install"
283+ - name : Test in prefix
284+ run : |
285+ su ocaml -c "bash -xe tools/ci/actions/runner.sh test-in-prefix"
0 commit comments