Change to only build if there are changes to source files or the build script itself

This commit is contained in:
aristocratos 2021-10-05 20:55:15 +02:00
parent ef13446501
commit acdefb7889
1 changed files with 7 additions and 2 deletions

View File

@ -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