Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
Summary: test invoke `root//third-party/ocaml:ocamlopt-exe` (the ocaml native compiler)

Reviewed By: bigfootjon

Differential Revision: D54418954

fbshipit-source-id: 4f2f61b701595c0753339da252e9bcb356dde16a
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Mar 1, 2024
1 parent 35d76e6 commit baf091e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
submodules: 'true'
- uses: facebook/install-dotslash@latest
- run: sudo apt-get update && sudo apt-get install opam
- run: sudo apt-get install opam
if: matrix.os == 'ubuntu'
- run: brew install opam
if: matrix.os == 'macos'
Expand All @@ -29,6 +29,7 @@ jobs:
(cd third-party/ocaml && ln -s "$OPAM_SWITCH_PREFIX" opam)
python3 dromedary.py -s "$(basename $OPAM_SWITCH_PREFIX)" -o third-party/ocaml/BUCK.test
cat third-party/ocaml/BUCK.test
- run: echo "PATH=$(pwd):$PATH" >> $GITHUB_ENV
- run: |-
PATH=$(pwd):$PATH; export PATH
buck2 run root//test:version -v 2
buck2 run root//test:version
cat $(buck2 build root//test:config --show-full-simple-output)
7 changes: 7 additions & 0 deletions test/BUCK.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ cxx_binary(
deps = ["root//third-party/ocaml:ocaml-dev"],
) if _SUPPORTED else None

# buildifier: disable=no-effect
genrule(
name = "config",
out = "config.txt",
bash = '$(exe_target root//third-party/ocaml:ocamlopt-exe) -config > $OUT',
) if _SUPPORTED else None

# buildifier: disable=no-effect
ocaml_binary(
name = "unix",
Expand Down

0 comments on commit baf091e

Please sign in to comment.