Skip to content

Commit

Permalink
It works?
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Feb 7, 2024
1 parent 15b8131 commit 2298e9b
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,35 @@ jobs:
fail-fast: false
matrix:
include:
# - name: Windows
# uses: windows-latest
# ocaml:
# ocaml-compiler: ocaml-variants.5.1.1+options,ocaml-option-mingw
# # Copied from https://github.com/ocaml-multicore/eio/blob/main/.github/workflows/main.yml
# opam-depext: false
# opam-repositories: |
# dra27: https://github.com/dra27/opam-repository.git#windows-5.0
# normal: https://github.com/ocaml/opam-repository.git
# input-file: illuaminate.exe
# output-file: illuaminate-windows-x86_64.exe
# dune-flags:
- name: Windows
uses: windows-latest
ocaml:
ocaml-compiler: ocaml-variants.5.1.1+options,ocaml-option-mingw
# Copied from https://github.com/ocaml-multicore/eio/blob/main/.github/workflows/main.yml
opam-depext: false
opam-repositories: |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
normal: https://github.com/ocaml/opam-repository.git
input-file: illuaminate.exe
output-file: illuaminate-windows-x86_64.exe
dune-flags:

- name: Linux
uses: ubuntu-latest
# We don't use flambda as that ends up much buliker than without.
ocaml:
# Ideally we'd use ocaml-variants.5.1.1+options,ocaml-option-musl, but
# I can't make that work.
# ocaml-compiler: "5.1.1"
ocaml-compiler: ocaml-variants.5.1.1+options,ocaml-option-static
input-file: illuaminate
output-file: illuaminate-linux-x86_64
dune-flags: --workspace dune-workspace.release

# - name: macOS
# uses: macos-latest
# ocaml:
# ocaml-compiler: "5.1.1"
# input-file: illuaminate
# output-file: illuaminate-macos-x86_64
# dune-flags:
- name: macOS
uses: macos-latest
ocaml:
ocaml-compiler: "5.1.1"
input-file: illuaminate
output-file: illuaminate-macos-x86_64
dune-flags:

name: Build ${{ matrix.name }}
runs-on: ${{ matrix.uses }}
Expand All @@ -67,8 +64,13 @@ jobs:
with:
fetch-depth: 0

# This is required to make the static/musl build work. I *believe*, OCaml
# finds the glibc libzstd during ./configure, and then looks for a musl
# version when compiling. Not 100% sure, as I've not been able to reproduce
# this failure locally.
- name: Remove libzstd
run: sudo apt remove libzstd-dev --yes
if: "matrix.name == 'Linux'"

- name: Use OCaml
uses: ocaml/setup-ocaml@v2
Expand Down

0 comments on commit 2298e9b

Please sign in to comment.