From d99f60e3c0dee0c10b95e1170da871619918c4ae Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Thu, 29 Aug 2024 16:48:21 +0100 Subject: [PATCH] Add platform to hostapd-cache key 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 | 4 +++- .github/workflows/ci-sanitizers.yml | 1 + .github/workflows/ci.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-freeradius/action.yml b/.github/actions/build-freeradius/action.yml index 24ef474ec9..9eb0eed987 100644 --- a/.github/actions/build-freeradius/action.yml +++ b/.github/actions/build-freeradius/action.yml @@ -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... diff --git a/.github/workflows/ci-sanitizers.yml b/.github/workflows/ci-sanitizers.yml index a666fffb67..aee1ab93a4 100644 --- a/.github/workflows/ci-sanitizers.yml +++ b/.github/workflows/ci-sanitizers.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b80da5e231..1627c51079 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 -- 2.47.2