Disable flambda1 CI tests #824
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: closure-local | |
config: --enable-stack-allocation | |
os: ubuntu-latest | |
ocamlparam: '' | |
check_arch: true | |
# - name: flambda-local | |
# config: --enable-flambda --enable-stack-allocation | |
# os: ubuntu-latest | |
# use_runtime: d | |
# ocamlrunparam: "v=0,V=1" | |
env: | |
J: "3" | |
steps: | |
- name: Install GNU parallel | |
if: matrix.os == 'macos-latest' | |
run: HOMEBREW_NO_INSTALL_CLEANUP=TRUE brew install parallel | |
- name: Checkout the ocaml-jst repo | |
uses: actions/checkout@master | |
with: | |
path: 'ocaml-jst' | |
- name: Cache OCaml 4.14 and dune | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ${{ github.workspace }}/ocaml-414/_install | |
key: ${{ matrix.os }}-cache-ocaml-414-dune-361-bits-${{ matrix.boot_cachekey }} | |
- name: Checkout OCaml 4.14 | |
uses: actions/checkout@master | |
if: steps.cache.outputs.cache-hit != 'true' | |
with: | |
repository: 'ocaml/ocaml' | |
path: 'ocaml-414' | |
ref: '4.14' | |
- name: Build OCaml 4.14 | |
if: steps.cache.outputs.cache-hit != 'true' | |
working-directory: ocaml-414 | |
run: | | |
export PATH=$GITHUB_WORKSPACE/ocaml-414/_install/bin:$PATH | |
./configure --prefix=$GITHUB_WORKSPACE/ocaml-414/_install ${{ matrix.boot_config }} | |
make -j $J world.opt | |
make install | |
# Remove unneeded parts to shrink cache file | |
rm -rf $GITHUB_WORKSPACE/ocaml-414/_install/{lib/ocaml/compiler-libs,lib/ocaml/expunge,bin/*.byte} | |
- name: Checkout dune github repo | |
uses: actions/checkout@master | |
if: steps.cache.outputs.cache-hit != 'true' | |
with: | |
repository: 'ocaml/dune' | |
ref: '3.6.1' | |
path: 'dune' | |
- name: Build dune | |
working-directory: dune | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
PATH=$GITHUB_WORKSPACE/ocaml-414/_install/bin:$PATH make release | |
cp _boot/dune.exe $GITHUB_WORKSPACE/ocaml-414/_install/bin/dune | |
- name: Configure OCaml | |
working-directory: ocaml-jst | |
run: | | |
export PATH=$GITHUB_WORKSPACE/ocaml-414/_install/bin:$PATH | |
autoconf | |
./configure \ | |
--prefix=$GITHUB_WORKSPACE/_install \ | |
${{ matrix.config }} | |
- name: Build, install and test ocaml-jst | |
working-directory: ocaml-jst | |
run: | | |
export PATH=$GITHUB_WORKSPACE/ocaml-414/_install/bin:$PATH | |
make -f Makefile.jst runtest-upstream | |
env: | |
BUILD_OCAMLPARAM: ${{ matrix.ocamlparam }} | |
OCAMLRUNPARAM: ${{ matrix.ocamlrunparam }} | |
USE_RUNTIME: ${{ matrix.use_runtime }} |