Skip to content

Commit 286e732

Browse files
authored
Ocamlformat fixes (#16)
* 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]>
1 parent 46c289b commit 286e732

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ jobs:
100100
os: [macos-14, macos-13]
101101
ocaml: ["5.2.1", "5.1.1"]
102102
include:
103-
- os: ubuntu-latest
104-
version: "0.26.2"
105-
ocaml: "5.2.1"
106-
target_triple: x86_64-unknown-linux-musl
107103
- os: macos-13
108104
version: "0.26.2"
109105
ocaml: "5.2.1"
@@ -112,10 +108,6 @@ jobs:
112108
version: "0.26.2"
113109
ocaml: "5.2.1"
114110
target_triple: aarch64-apple-darwin
115-
- os: ubuntu-latest
116-
version: "0.26.1"
117-
ocaml: "5.1.1"
118-
target_triple: x86_64-unknown-linux-musl
119111
- os: macos-13
120112
version: "0.26.1"
121113
ocaml: "5.1.1"

build-scripts/ocamlformat/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ WORKDIR $HOME
2525

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

28-
# Build ocamllsp
28+
# Build ocamlformat
2929
RUN mkdir switch
3030
WORKDIR switch
3131
RUN opam switch create . "ocaml.$OCAML_VERSION"

build-scripts/ocamlformat/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ necessary).
1212

1313
Example usage:
1414
```
15-
$ 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
15+
$ 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
1616
1717
```
1818

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

2424
Example usage:
2525
```
26-
$ 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
26+
$ 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
2727
```

0 commit comments

Comments
 (0)