Skip to content

Commit 648220b

Browse files
authored
Update mac.yml: fix pkg-config issue
1 parent 4a52768 commit 648220b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/mac.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@main
1818

19+
- name: Deps
20+
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
21+
# homebrew in the workers comes pre-installed with the old pkg-config, which conflicts with the new pkgconf
22+
run: |
23+
brew unlink pkg-config
24+
brew install aspcud openblas
25+
1926
- name: Use OCaml
2027
uses: ocaml/setup-ocaml@v2
2128
with:
@@ -24,10 +31,6 @@ jobs:
2431
# *.opam
2532
dune-cache: true
2633
allow-prerelease-opam: true
27-
28-
- name: Deps
29-
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
30-
run: brew install aspcud openblas
3134

3235
- name: OCaml Deps
3336
run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy
@@ -38,4 +41,4 @@ jobs:
3841
- name: Run tests
3942
run: |
4043
opam install owl-base
41-
opam exec -- dune runtest -j 1 --no-buffer -p owl
44+
opam exec -- dune runtest -j 1 --no-buffer -p owl

0 commit comments

Comments
 (0)