From 844d6774e0fa2750228abee460560257988c1694 Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Mon, 16 Aug 2021 17:35:33 +0200 Subject: [PATCH] CI: Validate compilation without buildtags Today we support the seccomp build tag only that is used by default. However, we are not testing that compiling without any build tag works. I found the CI didn't catch this when working on #2682, that the CI was green but compilation without build tags was broken. We test compilation without build tags only, compilation with the only build tag supported is done extensively in other actions. Signed-off-by: Rodrigo Campos --- .github/workflows/validate.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index fa812413ad8..b5ebb9d26ca 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -23,6 +23,13 @@ jobs: # must be specified without patch version version: v1.40 + compile-buildtags: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: compile with no build tags + run: make BUILDTAGS="" + shfmt: runs-on: ubuntu-20.04 steps: