From: Terry Burton Date: Mon, 15 Mar 2021 11:10:11 +0000 (+0000) Subject: CI package tests: Run bleeding-edge distro builds for RPM and DEB on push (#3982) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=266c8beb0d332fa0349f7c9fdaa096d915de7d4b;p=thirdparty%2Ffreeradius-server.git CI package tests: Run bleeding-edge distro builds for RPM and DEB on push (#3982) GH now lets you build the matrix from job output so we can excute different plans on push vs on schedule. This lets us perform package testing on each push without consuming lots of workers. Typically all DEB or RPM distros either succeed together or fail together, so on push we just run a job for each of DEB and RPM using a bleeding-edge distro. --- diff --git a/.github/workflows/ci-deb.yml b/.github/workflows/ci-deb.yml index 944896b27b6..ec09b7be36d 100644 --- a/.github/workflows/ci-deb.yml +++ b/.github/workflows/ci-deb.yml @@ -2,9 +2,6 @@ name: CI DEB on: push: - branches: - - packaging_test - - ci-debug schedule: - cron: '0 20 * * *' @@ -12,17 +9,58 @@ env: DEBIAN_FRONTEND: noninteractive jobs: + + # + # We don't want to consume many workers on each push so we only build the + # full suite of distros during the scheduled or ci-debug run and just the + # "bleeding-edge" distro on each push. + # + # This job builds the matrix based on the event that trigger this run which + # the next job consumes. + # + set-matrix: + name: Setup build matrix + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - id: set-matrix + name: Setup the matrix + run: | + if [ "$GITHUB_EVENT_NAME" = "schedule" -o "$GITHUB_REF" = "refs/heads/ci-debug" ]; then + M=$(cat <