]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add platform to hostapd-cache key
authorNick Porter <nick@portercomputing.co.uk>
Thu, 29 Aug 2024 15:48:21 +0000 (16:48 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 29 Aug 2024 16:02:13 +0000 (17:02 +0100)
When building FreeRADIUS in a docker container, runner.os is the host
platform - so does not change to reflect the docker image the build is
running in.

.github/actions/build-freeradius/action.yml
.github/workflows/ci-sanitizers.yml
.github/workflows/ci.yml

index 24ef474ec9f8ac9092670f604edd147d9a437252..9eb0eed987f6e7516c9c8b3c62acdf4bf573603e 100644 (file)
@@ -10,6 +10,8 @@ inputs:
   test_type:
     desription: What test is being run
     default: gcc
+  platform:
+    description: Platform the build is on
 
 
 runs:
@@ -40,7 +42,7 @@ runs:
       id: hostapd-cache
       with:
         path: ${{ env.HOSTAPD_BUILD_DIR }}
-        key: hostapd-${{ runner.os }}-${{ env.HOSTAPD_GIT_TAG }}-v4
+        key: hostapd-${{ runner.os }}-${{ inputs.platform }}-${{ env.HOSTAPD_GIT_TAG }}-v4
       if: ${{ inputs.test_type != 'fuzzing' }}
 
     #  Has issues in Docker container when running on GitHub...
index a666fffb677cfe6d5de3e412aed9f93b6f4e1837..aee1ab93a4b223713789740c12028c04713d7412 100644 (file)
@@ -96,6 +96,7 @@ jobs:
           use_sanitizers: true
           cc: ${{ matrix.env.CC }}
           test_type: ${{ matrix.env.TEST_TYPE }}
+          platform: ${{ matrix.os.imageos }}
 
       - name: Run main CI tests
         uses: ./.github/actions/ci-tests
index b80da5e2314a61d0810c957ed9516626107ec937..1627c510790bb65c1bf7ae42ff093f8edf27bd7e 100644 (file)
@@ -168,6 +168,7 @@ jobs:
           use_sanitizers: false
           cc: ${{ matrix.env.CC }}
           test_type: ${{ matrix.env.TEST_TYPE }}
+          platform: ${{ matrix.os.imageos }}
 
       - name: Run main CI tests
         uses: ./.github/actions/ci-tests