Skip to content

Commit

Permalink
build: add SDK sanity test to CI
Browse files Browse the repository at this point in the history
Need to delete $(XAPI_SDK) before attempting to overwrite otherwise may run into permission issues
if some files got marked as readonly by dune.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Jan 10, 2024
1 parent a6abdec commit e719b06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ jobs:
opam exec -- make install DESTDIR=$(mktemp -d)
opam exec -- make install DESTDIR=$(mktemp -d) BUILD_PY2=NO
- name: Sanity test SDK
run: |
opam exec -- make sdksanity
- name: Uninstall unversioned packages and remove pins
# This should purge them from the cache, unversioned package have
# 'master' as its version
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ sdk:
@ocaml/sdk-gen/csharp/generate \
@ocaml/sdk-gen/java/generate \
@ocaml/sdk-gen/powershell/generate
rm -rf $(XAPISDK)
mkdir -p $(XAPISDK)/c
mkdir -p $(XAPISDK)/csharp
mkdir -p $(XAPISDK)/java
Expand Down

0 comments on commit e719b06

Please sign in to comment.