Skip to content

Commit

Permalink
Update mac.yml: fix pkg-config issue (#681)
Browse files Browse the repository at this point in the history
* Update mac.yml: fix pkg-config issue

* Update .github/workflows/mac.yml

* deploy action should only run on the main branch

And should be updated to vefsion 4 to work with new GH security changes

* Update .github/workflows/mac.yml

* Update mac.yml
  • Loading branch information
mseri authored Nov 19, 2024
1 parent 4a52768 commit fc4a49c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
steps:
- uses: actions/checkout@main

- name: Deps
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
# homebrew in the workers comes pre-installed with the old pkg-config, which conflicts with the new pkgconf
run: |
brew unlink pkg-config
brew install pkgconf aspcud openblas
brew unlink pkgconf
brew link pkg-config
- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
Expand All @@ -24,10 +33,6 @@ jobs:
# *.opam
dune-cache: true
allow-prerelease-opam: true

- name: Deps
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
run: brew install aspcud openblas

- name: OCaml Deps
run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy
Expand All @@ -38,4 +43,4 @@ jobs:
- name: Run tests
run: |
opam install owl-base
opam exec -- dune runtest -j 1 --no-buffer -p owl
opam exec -- dune runtest -j 1 --no-buffer -p owl
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
opam exec -- dune build @doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/default/_doc/_html
Expand Down

0 comments on commit fc4a49c

Please sign in to comment.