| 1 | name: OpenBSD |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ "arping-2.x", "ci" ] |
| 6 | pull_request: |
| 7 | branches: [ "arping-2.x" ] |
| 8 | |
| 9 | jobs: |
| 10 | test: |
| 11 | runs-on: ubuntu-latest |
| 12 | name: Build on OpenBSD |
| 13 | steps: |
| 14 | - uses: actions/checkout@v6 |
| 15 | - name: Test in OpenBSD |
| 16 | id: test |
| 17 | uses: vmactions/openbsd-vm@v1 |
| 18 | with: |
| 19 | usesh: true |
| 20 | prepare: | |
| 21 | pkg_info -Q autoconf | grep ^autoconf-[0-9] | sort -V | tail -1 | xargs pkg_add -v |
| 22 | pkg_info -Q libnet | grep ^libnet-[0-9] | sort -V | tail -1 | xargs pkg_add -v |
| 23 | pkg_info -Q automake | grep ^automake-[0-9] | sort -V | tail -1 | xargs pkg_add -v |
| 24 | |
| 25 | run: | |
| 26 | tree /home/runner/work |
| 27 | pwd |
| 28 | ls -lah |
| 29 | whoami |
| 30 | env |
| 31 | sysctl hw.model |
| 32 | sysctl hw.ncpu |
| 33 | sysctl hw.physmem |
| 34 | sysctl hw.usermem |
| 35 | ./bootstrap.sh |
| 36 | ./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include/libnet-1.1 |
| 37 | make |
| 38 | GW="$(route -n show | awk '$1 == "default" { print $2; exit }')" |
| 39 | id |
| 40 | ./src/arping -c 1 "$GW" |
| 41 | ./src/arping -vvvvvvv -c 1 "$GW" |