Skip to content

Commit

Permalink
Ocamlformat fixes (#16)
Browse files Browse the repository at this point in the history
* Fix up some documentation around ocamlformat build script

Signed-off-by: Stephen Sherratt <[email protected]>

* Fix bug where ocamlformat was dynamically linked on linux

We were still running the build script on ubuntu runners which produced
the same artifact names as the dockerfile but which contained dynamic
binaries.

Signed-off-by: Stephen Sherratt <[email protected]>

---------

Signed-off-by: Stephen Sherratt <[email protected]>
  • Loading branch information
gridbugs authored Nov 25, 2024
1 parent 46c289b commit 286e732
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ jobs:
os: [macos-14, macos-13]
ocaml: ["5.2.1", "5.1.1"]
include:
- os: ubuntu-latest
version: "0.26.2"
ocaml: "5.2.1"
target_triple: x86_64-unknown-linux-musl
- os: macos-13
version: "0.26.2"
ocaml: "5.2.1"
Expand All @@ -112,10 +108,6 @@ jobs:
version: "0.26.2"
ocaml: "5.2.1"
target_triple: aarch64-apple-darwin
- os: ubuntu-latest
version: "0.26.1"
ocaml: "5.1.1"
target_triple: x86_64-unknown-linux-musl
- os: macos-13
version: "0.26.1"
ocaml: "5.1.1"
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/ocamlformat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WORKDIR $HOME

RUN opam init --disable-sandboxing --auto-setup --bare

# Build ocamllsp
# Build ocamlformat
RUN mkdir switch
WORKDIR switch
RUN opam switch create . "ocaml.$OCAML_VERSION"
Expand Down
4 changes: 2 additions & 2 deletions build-scripts/ocamlformat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ necessary).

Example usage:
```
$ docker buildx build . --target=export --output type=local,dest=$(pwd)/out/ --build-arg TAG=2024-11-21.0 --build-arg TARGET=x86_64-unknown-linux-musl --build-arg OCAML_VERSION=5.1.1 --build-arg OCAMLFORMAT_VERSION=1.18.0
$ docker buildx build . --target=export --output type=local,dest=$(pwd)/out/ --build-arg TAG=2024-11-21.0 --build-arg TARGET=x86_64-unknown-linux-musl --build-arg OCAML_VERSION=5.1.1 --build-arg OCAMLFORMAT_VERSION=0.26.1
```

Expand All @@ -23,5 +23,5 @@ Creates a package archive containing a dynamically-linked `ocamlformat` and

Example usage:
```
$ TAG=2024-11-21.0 TARGET=aarch64-apple-darwin OCAML_VERSION=5.1.1 OCAMLFORMAT_VERSION=0.26.2 OUTPUT=$(pwd)/ocamlformat.0.26.2+binary-ocaml-5.1.1-built-2024-11-21.0-aarch64-apple-darwin.tar.gz ./build.sh
$ TAG=2024-11-21.0 TARGET=aarch64-apple-darwin OCAML_VERSION=5.1.1 OCAMLFORMAT_VERSION=0.26.1 OUTPUT=$(pwd)/ocamlformat.0.26.1+binary-ocaml-5.1.1-built-2024-11-21.0-aarch64-apple-darwin.tar.gz ./build.sh
```

0 comments on commit 286e732

Please sign in to comment.