Skip to content

Commit

Permalink
Merge pull request #418 from mtelvers/freebsd-14.1
Browse files Browse the repository at this point in the history
Add version number to FreeBSD
  • Loading branch information
mtelvers authored Jan 27, 2025
2 parents e31e906 + 206fef9 commit 9f2607d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions doc/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- debian-unstable
- fedora-40
- fedora-41
- freebsd
- freebsd-14.1
- macos-homebrew
- opensuse-15.6
- opensuse-tumbleweed
Expand Down Expand Up @@ -114,8 +114,8 @@
| fedora-40 | amd64 | 5.3 | dev | No | No |
| fedora-41 | amd64 | 4.14 | dev | No | No |
| fedora-41 | amd64 | 5.3 | dev | No | No |
| freebsd | amd64 | 4.14 | dev | No | No |
| freebsd | amd64 | 5.3 | dev | No | No |
| freebsd-14.1 | amd64 | 4.14 | dev | No | No |
| freebsd-14.1 | amd64 | 5.3 | dev | No | No |
| macos-homebrew | amd64 | 4.14 | dev | No | No |
| macos-homebrew | amd64 | 5.3 | dev | No | No |
| macos-homebrew | arm64 | 4.14 | dev | No | No |
Expand Down
4 changes: 2 additions & 2 deletions opam-ci-check/lib/variant.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let docker_tag t =
let distribution t = t.distribution
let pp f t = Fmt.pf f "%s/%s" (docker_tag t) (Ocaml_version.string_of_arch t.arch)

let freebsd = "freebsd"
let freebsd = "freebsd-14.1"
let macos_homebrew = "macos-homebrew"

let macos_distributions = [
Expand All @@ -39,7 +39,7 @@ let macos_distributions = [
let os { distribution; _ } =
if List.exists (String.equal distribution) macos_distributions then
`Macos
else if List.exists (String.equal distribution) [ "freebsd" ] then
else if List.exists (String.equal distribution) [ freebsd ] then
`Freebsd
else
`Linux
Expand Down
8 changes: 4 additions & 4 deletions test/specs.expected
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ build: macos-homebrew-ocaml-4.14/arm64 opam-dev
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1

build: freebsd-ocaml-5.3/amd64 opam-dev
build: freebsd-14.1-ocaml-5.3/amd64 opam-dev
FROM BASE_IMAGE_TAG
USER 1000:1000
WORKDIR /home/opam
Expand All @@ -2571,15 +2571,15 @@ build: freebsd-ocaml-5.3/amd64 opam-dev
failed=$(ls "$build_dir"); \
partial_fails=""; \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"freebsd\""; then \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"freebsd-14.1\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'a.0.0.1' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1

build: freebsd-ocaml-4.14/amd64 opam-dev
build: freebsd-14.1-ocaml-4.14/amd64 opam-dev
FROM BASE_IMAGE_TAG
USER 1000:1000
WORKDIR /home/opam
Expand All @@ -2604,7 +2604,7 @@ build: freebsd-ocaml-4.14/amd64 opam-dev
failed=$(ls "$build_dir"); \
partial_fails=""; \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"freebsd\""; then \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"freebsd-14.1\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'a.0.0.1' && partial_fails="$partial_fails $pkg"; \
Expand Down

0 comments on commit 9f2607d

Please sign in to comment.