forked from wolfSSL/wolfip
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.59 KB
/
freebsd.yml
File metadata and controls
52 lines (49 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: FreeBSD interop tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
jobs:
freebsd_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and run tests on FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
copyback: false
usesh: true
prepare: |
set -ex
env IGNORE_OSVERSION=yes pkg update -f
env IGNORE_OSVERSION=yes pkg install -y gmake gcc check vim autoconf automake libtool git
kldload if_tap || true
sysctl net.link.tap.up_on_open=1 || true
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
gmake -j$(sysctl -n hw.ncpu)
gmake install
ldconfig
run: |
set -ex
cd "${GITHUB_WORKSPACE:-/root/work/github/workspace}"
gmake build/test-evloop build/test-wolfssl build/test-ttl-expired unit unit-esp
cleanup_taps() {
for ifc in $(ifconfig -l | tr ' ' '\n' | grep '^tap'); do
ifconfig "${ifc}" destroy || true
done
}
cleanup_taps
./build/test/unit
./build/test/unit-esp
cleanup_taps
./build/test-evloop
sleep 2
cleanup_taps
./build/test-wolfssl
cleanup_taps
./build/test-ttl-expired