Skip to content

Commit

Permalink
Push Github actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
saroupille committed Jan 22, 2024
1 parent dfa19a7 commit 88ce0f3
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build
run-name: Build Bam
on: [push]

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

jobs:
build_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
ocaml-compiler: [
# OCaml LTS version
ocaml.4.14.1,
# ocaml-system for Fedora 39
ocaml.5.0.0,
# ocaml-system for Archlinux
ocaml.5.1.0
]
steps:
- uses: actions/checkout@v4
- name: setting up opam...
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies
run: |
opam update
opam upgrade
opam install . --deps-only -t
- name: Build Bam
run: |
eval $(opam env)
dune build .
- name: Build documentation
run: |
eval $(opam env)
opam install odoc
dune build @doc
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: _build/default/_doc/_html
name: github-pages

- name: Deploy to GitHub pages
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
2 changes: 1 addition & 1 deletion bam.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ depends: [
"ocaml"
"dune" {>= "3.7"}
"pringo"
"stdlib"
"odoc" {with-doc}
"tezt" {with-test}
]
build: [
["dune" "subst"] {dev}
Expand Down
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
(name bam)
(synopsis "A property-based testing library with internal shrinking")
(description "A property-based testing allowing to define generators with internal shrinking easily")
(depends ocaml dune pringo stdlib)
(depends ocaml dune pringo (odoc :with-doc) (tezt :with-test))
(tags
(test pbt shrinking internal)))

(package
(name tezt-bam)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune bam mtime)
(depends ocaml dune tezt bam mtime (odoc :with-doc))
(tags
(test tezt pbt shrinking internal bam)))

Expand Down
1 change: 1 addition & 0 deletions tezt-bam.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ bug-reports: "https://github.com/username/reponame/issues"
depends: [
"ocaml"
"dune" {>= "3.7"}
"tezt"
"bam"
"mtime"
"odoc" {with-doc}
Expand Down

0 comments on commit 88ce0f3

Please sign in to comment.