Test compiler with setup-ocaml #358
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: Test compiler with setup-ocaml | |
on: | |
pull_request: | |
push: | |
schedule: | |
# Prime the caches every Tuesday | |
- cron: 0 1 * * TUE | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: macos-latest | |
ocaml-compiler: dkml-base-compiler | |
dkml-host-abi: darwin_arm64 | |
dkml-target-abi: darwin_arm64 | |
- os: ubuntu-latest | |
ocaml-compiler: dkml-base-compiler | |
dkml-host-abi: linux_x86_64 | |
dkml-target-abi: linux_x86_64 | |
# No Windows because ... | |
# Initialise the opam repositories | |
# D:\cygwin\bin\opam.exe repository add default https://opam.ocaml.org --all-switches --set-default | |
# [ERROR] Could not update repository "default": Failed to extract archive C:/Users/RUNNER~1/AppData/Local/Temp/opam-5188-5a61c5/index.tar.gz: "C:\\Windows\\system32\\tar.exe xfz /cygdrive/c/Users/RUNNER~1/AppData/Local/Temp/opam-5188-5a61c5/index.tar.gz -C /cygdrive/d/.opam/repo/default.new" exited with code 1 "tar.exe: Error opening archive: Failed to open '/cygdrive/c/Users/RUNNER~1/AppData/Local/Temp/opam-5188-5a61c5/index.tar.gz'" | |
# - windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }},dkml-host-abi-${{ matrix.dkml-host-abi }},dkml-target-abi-${{ matrix.dkml-target-abi }} | |
opam-depext: false | |
opam-repositories: | | |
diskuv: git+https://github.com/diskuv/diskuv-opam-repository.git#main | |
default: https://opam.ocaml.org | |
opam-local-packages: | | |
dkml-base-compiler.opam |