Skip to content

Commit

Permalink
prevent opam from using submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Nov 20, 2024
1 parent b330c30 commit b49cf98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
git submodule update --init test/script/reference
git submodule update --init test/c/collections-c/files
mv .git .git.tmp # prevents opam from checking-out submodules
- name: cache
id: cache-opam
uses: actions/cache@v4
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
opam exec -- dune build @install
- name: test
run: |
mv .git.tmp .git # bring it back, we won't call opam anymore from now on
if [ "$RUNNER_OS" == "macOS" ]; then
export PATH="$(brew --prefix llvm@15)/bin/:$PATH" # macossucks
fi
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
run: |
git submodule update --init test/script/reference
git submodule update --init test/c/collections-c/files
mv .git .git.tmp # prevent opam from checking-out submodules
- name: setup-ocaml
uses: ocaml/setup-ocaml@v3
with:
Expand All @@ -38,6 +39,7 @@ jobs:
mv _build/default/_doc/_html doc/api
- name: coverage
run: |
mv .git.tmp .git # bring it back, we won't call opam anymore from now on
BISECT_FILE=$(pwd)/bisect opam exec -- dune runtest --force --instrument-with bisect_ppx
opam exec -- bisect-ppx-report html -o doc/coverage
- name: coverage-badge
Expand Down

0 comments on commit b49cf98

Please sign in to comment.