Skip to content

Commit ae3df61

Browse files
committed
Add FreeBSD to CI
1 parent 21ea2b3 commit ae3df61

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,43 @@ jobs:
8181
- name: Run xref
8282
run: rebar3 xref
8383

84+
# FreeBSD test using cross-platform action
85+
test-freebsd:
86+
name: FreeBSD 14
87+
runs-on: ubuntu-24.04
88+
89+
steps:
90+
- name: Checkout
91+
uses: actions/checkout@v4
92+
93+
- name: Test on FreeBSD
94+
uses: vmactions/freebsd-vm@v1
95+
with:
96+
release: "14.1"
97+
usesh: true
98+
prepare: |
99+
pkg install -y erlang python311 gmake gcc
100+
run: |
101+
# Set up environment
102+
export PYTHON_CONFIG=python3.11-config
103+
export PATH="/usr/local/bin:$PATH"
104+
105+
# Verify versions
106+
echo "Erlang version:"
107+
erl -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), halt().' -noshell
108+
echo "Python version:"
109+
python3.11 --version
110+
111+
# Build with rebar3
112+
fetch https://github.com/erlang/rebar3/releases/download/3.24.0/rebar3 -o rebar3
113+
chmod +x rebar3
114+
115+
# Compile and test
116+
./rebar3 compile
117+
./rebar3 ct --readable=compact
118+
./rebar3 dialyzer
119+
./rebar3 xref
120+
84121
# Test with free-threaded Python (experimental, no GIL)
85122
test-free-threaded:
86123
name: Free-threaded Python 3.13t

0 commit comments

Comments
 (0)