]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Align v3.0 deb tests with master
authorNick Porter <nick@portercomputing.co.uk>
Thu, 4 Aug 2022 13:01:14 +0000 (14:01 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 19 Aug 2022 10:53:26 +0000 (11:53 +0100)
.github/workflows/ci-deb.yml

index 0a37bc6f8fe4e768cd39f338cea5e76ebe1d2606..1bfbe507fdc70aea0fba82a3451fcfed40810a5c 100644 (file)
@@ -30,6 +30,10 @@ jobs:
     container:
       image: ${{ matrix.env.OS }}
 
+    env:
+      HOSTAPD_BUILD_DIR: /tmp/eapol_test.ci
+      HOSTAPD_GIT_TAG: hostap_2_8
+
     name: "DEB build"
 
     steps:
@@ -57,7 +61,6 @@ jobs:
       run: |
         pwd
         ls -la
-        cp -r freeradius freeradius-tests
         mkdir debs
         ls -la
 
@@ -75,15 +78,6 @@ jobs:
         krb5-config --all || :
         openssl version
 
-    - name: Run tests and build eapol_test
-      run: |
-        apt-get install -y libnl-3-dev libnl-genl-3-dev
-        ./configure
-        make -j `nproc`
-        make test
-        mv scripts/ci/eapol_test/eapol_test ../debs/
-      working-directory: freeradius-tests
-
     - name: Build DEBs
       run: |
         make deb
@@ -93,6 +87,20 @@ jobs:
       run: |
         mv *.deb debs/
 
+    - name: Restore eapol_test build directory from cache
+      uses: actions/cache@v2
+      id: hostapd-cache
+      with:
+        path: ${{ env.HOSTAPD_BUILD_DIR }}
+        key: hostapd-${{ matrix.env.NAME }}-${{ env.HOSTAPD_GIT_TAG }}-v1
+
+    - name: Build eapol_test
+      run: |
+        apt-get install -y libnl-3-dev libnl-genl-3-dev
+        scripts/ci/eapol_test-build.sh
+        mv scripts/ci/eapol_test/eapol_test ../debs
+      working-directory: freeradius
+
     - name: Store DEBs
       uses: actions/upload-artifact@v2
       with: