-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from psafont/nolog
- Loading branch information
Showing
3 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,39 +7,45 @@ on: | |
jobs: | ||
ocaml-test: | ||
name: Ocaml tests | ||
runs-on: ubuntu-20.04 | ||
env: | ||
package: "gpumon" | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pull configuration from xs-opam | ||
run: | | ||
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env | ||
- name: Load environment file | ||
id: dotenv | ||
uses: falti/[email protected] | ||
uses: falti/dotenv-action@v1 | ||
|
||
- name: Update Ubuntu repositories | ||
shell: bash | ||
run: sudo apt-get update | ||
|
||
- name: Use ocaml | ||
uses: avsm/setup-ocaml@v1 | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-version: ${{ steps.dotenv.outputs.ocaml_version_full }} | ||
opam-repository: ${{ steps.dotenv.outputs.repository }} | ||
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }} | ||
opam-repositories: | | ||
xs-opam: ${{ steps.dotenv.outputs.repository }} | ||
dune-cache: true | ||
env: | ||
DUNE_CACHE_STORAGE_MODE: copy | ||
|
||
- name: Install dependencies | ||
run: | | ||
opam pin add . --no-action | ||
opam depext -u ${{ env.package }} | ||
opam install ${{ env.package }} --deps-only --with-test -v | ||
shell: bash | ||
run: opam install . --deps-only --with-test -v | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
opam exec -- cp mocks/mock.ml lib/nvml.ml | ||
opam exec -- cp mocks/mock.c stubs/nvml_stubs.c | ||
opam exec -- make | ||
- name: Run tests | ||
shell: bash | ||
run: opam exec -- make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters