From 7467fab3e9cff2b304000c154cb5a9a316f473c4 Mon Sep 17 00:00:00 2001 From: Martynas Pumputis Date: Tue, 5 Sep 2023 10:28:24 +0200 Subject: [PATCH] gh/workflows: Use "make release" to build pwru for testing To avoid situations like https://github.com/cilium/pwru/issues/245. Signed-off-by: Martynas Pumputis --- .github/workflows/test.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e99d8dd2..e79a1c4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,22 +25,10 @@ jobs: go mod verify test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1) - - name: Cache LLVM and Clang - id: cache-llvm - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: $HOME/.clang - key: llvm-15.0 - - - name: Install LLVM and Clang - uses: KyleMayes/install-llvm-action@c135b3937686fd69c2651507aabc9925a8f9eee8 - with: - version: "15.0" - directory: $HOME/.clang - cached: ${{ steps.cache-llvm.outputs.cache-hit }} - - name: Generate and build - run: make pwru + run: | + make release + tar xfv release/pwru-linux-amd64.tar.gz - name: Store executable uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce