-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add github workflow for OCaml samples #20802
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
266482f
add github workflow for ocaml sample
wing328 18247ce
trigger build
wing328 87e4c38
test with 5
wing328 51b8d0c
install dune
wing328 b8e2f51
install yojson
wing328 532e037
install others
wing328 9693440
install
wing328 bffe529
add name
wing328 be35b26
trigger build failure
wing328 44d7fb5
Revert "trigger build failure"
wing328 dace75c
test with 5
wing328 35d8ecb
pin versions
wing328 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Samples OCaml | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - 'samples/client/petstore/ocaml/**' | ||
| pull_request: | ||
| paths: | ||
| - 'samples/client/petstore/ocaml/**' | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build OCaml | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| sample: | ||
| - 'samples/client/petstore/ocaml/' | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set-up OCaml | ||
| uses: ocaml/setup-ocaml@v3 | ||
| with: | ||
| ocaml-compiler: 4 | ||
| - name: Install | ||
| run: opam install . --deps-only --with-test | ||
| working-directory: ${{ matrix.sample }} | ||
| - name: Install Misc | ||
| run: opam install dune ppx_deriving_yojson conf-libev lwt cohttp-lwt-unix cohttp-async | ||
| working-directory: ${{ matrix.sample }} | ||
| - name: Build | ||
| run: opam exec -- dune build | ||
| working-directory: ${{ matrix.sample }} | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -21,3 +21,4 @@ | |
| #docs/*.md | ||
| # Then explicitly reverse the ignore rule for a single file: | ||
| #!docs/README.md | ||
| # | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.