From 958876a1b8ecedbcd1ee0febe2996e63ef22a5b0 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Fri, 19 Jan 2024 21:04:26 -0600 Subject: [PATCH] See if upgrading the CPUs fixed sanitizers running under docker --- .github/workflows/ci-sanitizers.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-sanitizers.yml b/.github/workflows/ci-sanitizers.yml index 1e5c911bf6cfc..8d2656ad192f9 100644 --- a/.github/workflows/ci-sanitizers.yml +++ b/.github/workflows/ci-sanitizers.yml @@ -34,6 +34,8 @@ jobs: # Map a step output to a job output outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} + selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }} + docker_prefix: ${{ github.repository_owner == 'FreeRADIUS' && 'docker.internal.networkradius.com/' || '' }} steps: - id: skip_check uses: fkirc/skip-duplicate-actions@master @@ -57,7 +59,11 @@ jobs: # docker - the docker image name, if containers are being used # name - used in the job name only os: - - { runs_on: "ubuntu-20.04", code: "ubuntu2004", docker: "ubuntu:20.04", name: "gh-ubuntu20", imageos: "ubuntu20" } + - runs_on: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'self-hosted' || 'ubuntu-20.04' }}" + docker: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'docker.internal.networkradius.com/self-hosted' || 'ubuntu:20.04' }}" + name: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'self' || 'gh' }}-ubuntu20" + code: "ubuntu2004" + imageos: "ubuntu20" env: - { CC: clang, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", LIBS_OPTIONAL: no, LIBS_ALT: no, TEST_TYPE: fixtures, NAME: linux-clang-lean } @@ -140,4 +146,3 @@ jobs: with: limit-access-to-actor: true if: ${{ github.ref == 'refs/heads/ci-debug' && failure() }} -