Skip to content

Commit

Permalink
Test --enable-relative in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Oct 18, 2024
1 parent eaeb2ca commit ccc4851
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
CC=$CC
--enable-ocamltest
${{ matrix.x86_64 && '--enable-native-toplevel' || '--disable-native-toplevel' }}
--${{ matrix.cc == 'cl' && 'enable' || 'disable' }}-relative
run: >-
eval $(tools/msvs-promote-path) ;
if ! ./configure ${{ env.CONFIGURE_FLAGS }} ; then
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
'${{ github.event.repository.full_name }}'
- name: Configure tree
run: |
MAKE_ARG=-j CONFIG_ARG='--enable-flambda --enable-cmm-invariants --enable-dependency-generation --enable-native-toplevel' OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh configure
MAKE_ARG=-j CONFIG_ARG='--enable-flambda --enable-cmm-invariants --enable-dependency-generation --enable-native-toplevel --enable-relative' OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh configure
- name: Build
run: |
MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh build
Expand Down Expand Up @@ -157,6 +157,7 @@ jobs:
os: macos-13
- name: macos-arm64
os: macos-14
config_arg: --enable-relative
- name: static
os: ubuntu-latest
config_arg: --disable-shared --disable-native-toplevel
Expand Down Expand Up @@ -217,10 +218,19 @@ jobs:
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh install
i386:
name: i386 - ${{ matrix.name }}
runs-on: ubuntu-latest
container:
image: debian:12
options: --platform linux/i386 --user root
strategy:
matrix:
include:
- name: absolute
config_arg: --disable-relative
- name: relative
config_arg: --enable-relative
fail-fast: false
steps:
- name: OS Dependencies
run: |
Expand All @@ -233,7 +243,7 @@ jobs:
- name: configure tree
run: |
chown -R ocaml:ocaml .
MAKE_ARG=-j CONFIG_ARG=--disable-native-toplevel su ocaml -c "bash -xe tools/ci/actions/runner.sh configure"
MAKE_ARG=-j CONFIG_ARG='--disable-native-toplevel ${{ matrix.config_arg }}' su ocaml -c "bash -xe tools/ci/actions/runner.sh configure"
- name: Build
run: |
MAKE_ARG=-j su ocaml -c "bash -xe tools/ci/actions/runner.sh build"
Expand Down
4 changes: 2 additions & 2 deletions tools/ci/appveyor/appveyor_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ function set_configuration {
# Remove configure cache if the script has failed
if ! ./configure --cache-file="$CACHE_FILE" $dep $build $man $host \
--prefix="$2" --enable-ocamltest \
--enable-native-toplevel ; then
--enable-native-toplevel --enable-relative ; then
rm -f -- "$CACHE_FILE"
local failed
./configure --cache-file="$CACHE_FILE" $dep $build $man $host \
--prefix="$2" --enable-ocamltest \
--enable-native-toplevel \
--enable-native-toplevel --enable-relative \
|| failed=$?
if ((failed)) ; then cat config.log ; exit $failed ; fi
fi
Expand Down

0 comments on commit ccc4851

Please sign in to comment.