Skip to content

Commit de64b03

Browse files
committed
ci(freebsd): use erlang-runtime28, test Python 3.12/3.13
Stock FreeBSD erlang pkg ships OTP 26, below the OTP 28 minimum, so rebar3 refused to build. Install erlang-runtime28 and add its bin dir to PATH. Drop Python 3.11 (below the 3.12 minimum).
1 parent d28b923 commit de64b03

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ jobs:
114114
fail-fast: false
115115
matrix:
116116
include:
117-
- python: "3.11"
118-
python_pkg: "python311"
119117
- python: "3.12"
120118
python_pkg: "python312"
119+
- python: "3.13"
120+
python_pkg: "python313"
121121

122122
steps:
123123
- name: Checkout
@@ -129,7 +129,9 @@ jobs:
129129
release: "14.1"
130130
usesh: true
131131
prepare: |
132-
pkg install -y erlang ${{ matrix.python_pkg }} cmake
132+
# Stock `erlang` pkg lags at OTP 26; use the versioned runtime
133+
# package so we test on a supported OTP (28+).
134+
pkg install -y erlang-runtime28 ${{ matrix.python_pkg }} cmake
133135
# numpy package follows the py<noDot>-numpy convention.
134136
# Non-fatal: not every FreeBSD pkg snapshot ships numpy for
135137
# every Python flavor; the ML SUITE self-skips when numpy
@@ -140,7 +142,9 @@ jobs:
140142
run: |
141143
# Set up environment
142144
export PYTHON_CONFIG=python${{ matrix.python }}-config
143-
export PATH="/usr/local/bin:$PATH"
145+
# erlang-runtime28 installs outside the default PATH; add its bin dir.
146+
ERL_BIN="$(dirname "$(pkg info -l erlang-runtime28 | tr -d '[:blank:]' | grep -E '/bin/erl$' | grep -v 'erts-' | head -1)")"
147+
export PATH="$ERL_BIN:/usr/local/bin:$PATH"
144148
145149
# Verify versions
146150
echo "Erlang version:"

0 commit comments

Comments
 (0)