1515 fail-fast : false
1616 matrix :
1717 include :
18- # Linux - OTP 27 (minimum supported)
19- - os : ubuntu-24.04
20- otp : " 27"
21- python : " 3.12"
22- - os : ubuntu-24.04
23- otp : " 27"
24- python : " 3.13"
25- - os : ubuntu-24.04
26- otp : " 27"
27- python : " 3.14"
28- # Linux - OTP 28
18+ # Linux - OTP 28 (minimum supported)
2919 - os : ubuntu-24.04
3020 otp : " 28"
3121 python : " 3.12"
4535 - os : ubuntu-24.04
4636 otp : " 29"
4737 python : " 3.14"
48- # macOS (brew installs the latest OTP)
38+ # macOS (brew: the erlang formula is the latest OTP, erlang@28
39+ # the versioned one)
4940 - os : macos-15
5041 otp : " 29"
5142 python : " 3.12"
5546 - os : macos-15
5647 otp : " 29"
5748 python : " 3.14"
49+ - os : macos-15
50+ otp : " 28"
51+ python : " 3.14"
52+ brew_erlang : erlang@28
5853
5954 steps :
6055 - name : Checkout
7570 - name : Set up Erlang (macOS)
7671 if : startsWith(matrix.os, 'macos')
7772 run : |
78- brew install erlang rebar3
73+ brew install ${{ matrix.brew_erlang || 'erlang' }} rebar3
74+ if [ "${{ matrix.brew_erlang }}" = "erlang@28" ]; then
75+ echo "$(brew --prefix erlang@28)/bin" >> "$GITHUB_PATH"
76+ fi
7977
8078 - name : Install numpy (for ML thread-affinity tests)
8179 run : |
@@ -117,7 +115,7 @@ jobs:
117115
118116 # FreeBSD test using cross-platform action
119117 test-freebsd :
120- name : FreeBSD 14 / Python ${{ matrix.python }}
118+ name : FreeBSD 14 / OTP ${{ matrix.otp }} / Python ${{ matrix.python }}
121119 runs-on : ubuntu-24.04
122120
123121 strategy :
@@ -126,8 +124,12 @@ jobs:
126124 include :
127125 - python : " 3.12"
128126 python_pkg : " python312"
127+ otp : " 28"
128+ otp_pkg : " erlang-runtime28"
129129 - python : " 3.13"
130130 python_pkg : " python313"
131+ otp : " 29"
132+ otp_pkg : " erlang-runtime29"
131133
132134 steps :
133135 - name : Checkout
@@ -140,8 +142,8 @@ jobs:
140142 usesh : true
141143 prepare : |
142144 # Stock `erlang` pkg lags at OTP 26; use the versioned runtime
143- # package so we test on a supported OTP (27 +).
144- pkg install -y erlang-runtime28 ${{ matrix.python_pkg }} cmake
145+ # package so we test on a supported OTP (28 +).
146+ pkg install -y ${{ matrix.otp_pkg }} ${{ matrix.python_pkg }} cmake
145147 # numpy package follows the py<noDot>-numpy convention.
146148 # Non-fatal: not every FreeBSD pkg snapshot ships numpy for
147149 # every Python flavor; the ML SUITE self-skips when numpy
@@ -152,8 +154,9 @@ jobs:
152154 run : |
153155 # Set up environment
154156 export PYTHON_CONFIG=python${{ matrix.python }}-config
155- # erlang-runtime28 installs outside the default PATH; add its bin dir.
156- ERL_BIN="$(dirname "$(pkg info -l erlang-runtime28 | tr -d '[:blank:]' | grep -E '/bin/erl$' | grep -v 'erts-' | head -1)")"
157+ # The OTP runtime package installs outside the default PATH;
158+ # add its bin dir.
159+ ERL_BIN="$(dirname "$(pkg info -l ${{ matrix.otp_pkg }} | tr -d '[:blank:]' | grep -E '/bin/erl$' | grep -v 'erts-' | head -1)")"
157160 export PATH="$ERL_BIN:/usr/local/bin:$PATH"
158161
159162 # Verify versions
0 commit comments