Skip to content

Commit 52ece0f

Browse files
committed
test: Build toxcore on NetBSD (VM).
1 parent 3fe8ee2 commit 52ece0f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,41 @@ jobs:
122122
- name: Cross compilation
123123
run: .github/scripts/cmake-win${{ matrix.bits }} script
124124

125+
build-netbsd:
126+
runs-on: ubuntu-latest
127+
steps:
128+
- uses: actions/checkout@v4
129+
with:
130+
submodules: recursive
131+
- name: Test in NetBSD
132+
id: test
133+
uses: vmactions/netbsd-vm@v1
134+
with:
135+
usesh: true
136+
copyback: false
137+
prepare:
138+
/usr/sbin/pkg_add
139+
cmake
140+
googletest
141+
libconfig
142+
libopus
143+
libsodium
144+
libvpx
145+
pkg-config
146+
147+
run: |
148+
# TODO(iphydf): Investigate NetBSD failures on these tests.
149+
sed -Ei -e '/(TCP|dht_getnodes_api)/s/^/#/' auto_tests/CMakeLists.txt
150+
cmake . \
151+
-DMIN_LOGGER_LEVEL=TRACE \
152+
-DMUST_BUILD_TOXAV=ON \
153+
-DNON_HERMETIC_TESTS=ON \
154+
-DTEST_TIMEOUT_SECONDS=90 \
155+
-DUSE_IPV6=OFF \
156+
-DAUTOTEST=ON
157+
cmake --build . --target install
158+
ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:6
159+
125160
mypy:
126161
runs-on: ubuntu-latest
127162
steps:

0 commit comments

Comments
 (0)