]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use cross-platform actions for FreeBSD tests
authorNick Porter <nick@portercomputing.co.uk>
Thu, 2 Nov 2023 12:14:02 +0000 (12:14 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 3 Nov 2023 13:21:41 +0000 (13:21 +0000)
This action appears to be under more active development / maintenance than vmactions/freebsd-vm

.github/workflows/ci-freebsd.yml

index 4f21a08986242e0eb021b76ee13bcb5cb26d7819..574d277b1e8876e65e2c94536633098206ec351a 100644 (file)
@@ -51,15 +51,15 @@ jobs:
         key: hostapd-freebsd-${{ env.HOSTAPD_GIT_TAG }}-v4
 
     - name: Test using a FreeBSD VirtualBox VM
-      uses: vmactions/freebsd-vm@v0
+      uses: cross-platform-actions/action@v0.21.0
       with:
-        usesh: true
-        sync: rsync
-        copyback: false
-        mem: 4096
-        envs: 'HOSTAPD_BUILD_DIR HOSTAPD_GIT_TAG'
-        prepare: |
-          pkg install -y         \
+        operating_system: freebsd
+        version: '13.2'
+        sync_files: runner-to-vm
+        memory: 4G
+        environment_variables: HOSTAPD_BUILD_DIR HOSTAPD_GIT_TAG
+        run: |
+          sudo pkg install -y    \
             curl                 \
             cyrus-sasl           \
             freetds              \
@@ -82,20 +82,16 @@ jobs:
             postgresql12-client  \
             talloc               \
             unixODBC
-          pip install tacacs_plus
-          echo "#! /bin/sh"               > /usr/local/bin/nproc
-          echo "sysctl -n hw.ncpu"        >> /usr/local/bin/nproc
-          chmod +x /usr/local/bin/nproc
-        run: |
+          sudo pip install tacacs_plus
+          echo "#! /bin/sh"        | sudo tee /usr/local/bin/nproc
+          echo "sysctl -n hw.ncpu" | sudo tee -a /usr/local/bin/nproc
+          sudo chmod +x /usr/local/bin/nproc
           freebsd-version
           cd freeradius
           ./configure
           gmake -j `nproc`
           gmake -j `nproc` test.keywords test.unit test.modules test.auth test.digest
           gmake test
-          # Minimise rsync pushback as it often fails with "ssh_dispatch_run_fatal: Connection to A.B.C.D: message authentication code incorrect"
-          git config --global --add safe.directory $(pwd)
-          git clean -fxd --exclude="$HOSTAPD_BUILD_DIR"
 
     #
     #  If the CI has failed and the branch is ci-debug then we start a tmate