From acdefb788996953559e703024983f13fdee4fadd Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 5 Oct 2021 20:55:15 +0200 Subject: [PATCH] Change to only build if there are changes to source files or the build script itself --- .github/workflows/continuous-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build.yml index f83ac58..7bffe29 100644 --- a/.github/workflows/continuous-build.yml +++ b/.github/workflows/continuous-build.yml @@ -2,6 +2,11 @@ name: Continuous Build Linux on: push + paths: + - 'src/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/continuous-build.yml' jobs: build: @@ -32,7 +37,7 @@ jobs: - name: Compile i686 run: | - make CXX=i686-linux-gnu-g++-11 ARCH=i686 STATIC=true QUIET=true + make CXX=i686-linux-gnu-g++-11 ARCH=i686 STATIC=true QUIET=true GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") mv bin/btop multiarch_bin/btop-i686-$GIT_HASH make distclean @@ -46,7 +51,7 @@ jobs: - name: Compile armel run: | - make CXX=arm-linux-gnueabi-g++-11 ARCH=armel STATIC=true QUIET=true + make CXX=arm-linux-gnueabi-g++-11 ARCH=armel STATIC=true QUIET=true GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") mv bin/btop multiarch_bin/btop-armel-$GIT_HASH make distclean