From: Matthew Newton Date: Wed, 26 Oct 2022 17:21:45 +0000 (+0100) Subject: CI: Run on GitHub unless it's the main FreeRADIUS repo X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26f1e60177b3895db23fea4c694e41ef13718c61;p=thirdparty%2Ffreeradius-server.git CI: Run on GitHub unless it's the main FreeRADIUS repo --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48943b9775d..777263a0afe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,11 @@ jobs: # docker - the docker image name, if containers are being used # name - used in the job name only os: - - { runs_on: "self-hosted", code: "ubuntu2004", docker: "ubuntu:20.04", name: "self-ubuntu20", imageos: "ubuntu20" } + - runs_on: "${{ github.repository_owner == 'FreeRADIUS' && 'self-hosted' || 'ubuntu-20.04' }}" + code: "ubuntu2004" + docker: "ubuntu:20.04" + name: "${{ github.repository_owner == 'FreeRADIUS' && 'self' || 'gh' }}-ubuntu20" + imageos: "ubuntu20" env: - { CC: gcc, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", LIBS_OPTIONAL: no, LIBS_ALT: no, TEST_TYPE: fixtures, NAME: linux-gcc-lean }