Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repository index generation #2680

Merged
merged 1 commit into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Build index
run: |
eval $(opam env)
make
scripts/generate-opam-indexes released core-dev extra-dev

- name: Build JSON index data
run: |
Expand Down
13 changes: 13 additions & 0 deletions scripts/generate-opam-indexes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -e
#
# Script which generates the index for OPAM packages to be served through HTTP.
# Similar to refresh-opam-indexes, but less ad-hoc (no hardcoded paths & e-mail
# addresses) and better suited for use as part of a CI workflow

OPAMCHECKOPTS=--cycles

for repo in "$@"; do
cd "$repo"
opam admin check $OPAMCHECKOPTS && opam admin make
cd ..
done