Skip to content

Commit

Permalink
Merge pull request #2321 from smorimoto/update-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions
  • Loading branch information
art-w authored Sep 6, 2024
2 parents 775612c + 8e5693f commit feb5b18
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 41 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: git diff
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') }}
Expand Down
34 changes: 10 additions & 24 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
Expand All @@ -17,9 +16,8 @@ jobs:
matrix:
os:
- ubuntu-latest
packages: [ '.' ]
ocaml-compiler:
- 4.13.x
- 5.1.x

runs-on: ${{ matrix.os }}

Expand All @@ -30,38 +28,26 @@ jobs:
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: $${ matrix.opam-local-packages }}
opam-depext-flags: --with-test

- name: Pin local packages
run: |
# Pin all local opam files to avoid internal conflicts
#
# TODO: replace with `opam pin --with-version` when Opam 2.1 is
# available via `setup-ocaml`.
find . -maxdepth 1 -name '*.opam' -printf '%P\n' |\
cut -d. -f1 |\
xargs -I{} -n 1 opam pin add {}.dev ./ -n
- name: Install depexts
run: |
find . -maxdepth 1 -name '*.opam' -printf '%P\n' |\
cut -d. -f1 |\
xargs opam depext --update -y

- name: Install Opam dependencies
run: opam install ${{ matrix.packages }} --with-test --deps-only
run: opam install . --with-test --deps-only

- name: Build
run: opam exec -- dune build

- name: Run tests with coverage instrumentation
run: opam exec -- dune runtest --instrument-with bisect_ppx

- name: Send coverage report to Codecov
run: opam exec -- bisect-ppx-report send-to Codecov
run: opam exec -- bisect-ppx-report send-to Codecov --verbose
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}
2 changes: 1 addition & 1 deletion .github/workflows/git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.0.0
- uses: actions/checkout@v4
- name: Block Fixup Commit Merge
uses: 13rac1/[email protected]
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- **irmin-client**
- Fix a fd lead when using `clone` (#2322, @samoht)
- **irmin**
- Fix CI, update dependencies (#2321, @smorimoto)

### Removed

Expand Down
2 changes: 2 additions & 0 deletions irmin-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ depends: [
"logs" {>= "0.7.0"}
"lwt" {>= "5.7.0"}
"irmin-test" {= version & with-test}
"alcotest-lwt" {with-test & >= "1.8.0"}
"irmin-watcher" {with-test & >= "0.5.0"}
]
build: [
["dune" "subst"] {pinned}
Expand Down
17 changes: 5 additions & 12 deletions src/libirmin/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,18 @@

(executable
(name libirmin)
(package libirmin)
(public_name libirmin)
(libraries libirmin_bindings)
(modes
(native shared_object)
native)
(modes shared_object)
(modules libirmin irmin_bindings)
(foreign_stubs
(language c)
(names irmin)))
(names irmin))
(flags
(:standard -w -unused-var-strict -ccopt "-Wl,-znow")))

(install
(package libirmin)
(section lib)
(files
(irmin.h as include/irmin.h)
(libirmin.so as lib/libirmin.so)))

(env
(dev
(flags
(:standard -w -unused-var-strict))))
(libirmin%{ext_dll} as lib/libirm%{ext_dll})))
2 changes: 1 addition & 1 deletion src/libirmin/util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Make (I : Cstubs_inverted.INTERNAL) = struct
match Lwt.poll x with
| Some x -> x
| None ->
let () = Lwt_engine.iter true in
let () = Lwt_engine.iter false in
run x

module Root = struct
Expand Down
4 changes: 3 additions & 1 deletion test/irmin-client/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
conduit-lwt-unix
alcotest-lwt
irmin-test
irmin-watcher))
irmin-watcher)
(enabled_if
(<> %{system} "freebsd")))
4 changes: 3 additions & 1 deletion test/irmin-graphql/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@
(alias runtest)
(package irmin-graphql)
(action
(run ./test.exe -q --color=always)))
(run ./test.exe -q --color=always))
(enabled_if
(<> %{system} "freebsd")))

0 comments on commit feb5b18

Please sign in to comment.