Skip to content

Commit

Permalink
[gha] build only when changes applies to workflow
Browse files Browse the repository at this point in the history
Signed-off-by: r4sas <[email protected]>
  • Loading branch information
r4sas committed Feb 21, 2024
1 parent e930ef1 commit 8101dbf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build Debian packages

on:
push:
branches:
- '*'
paths:
- .github/workflows/build-deb.yml
- contrib/**
Expand All @@ -14,6 +16,9 @@ on:
- Makefile.linux
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build on FreeBSD

on:
push:
branches:
- '*'
paths:
- .github/workflows/build-freebsd.yml
- build/CMakeLists.txt
Expand All @@ -14,6 +16,9 @@ on:
- Makefile.homebrew
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build on OSX

on:
push:
branches:
- '*'
paths:
- .github/workflows/build-osx.yml
- daemon/**
Expand All @@ -12,6 +14,9 @@ on:
- Makefile.homebrew
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-windows-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build on Windows with MSVC

on:
push:
branches:
- '*'
paths:
- .github/workflows/build-windows-msvc.yml
- build/CMakeLists.txt
Expand All @@ -13,7 +15,9 @@ on:
- Win32/**
tags:
- '*'
pull_request
pull_request:
branches:
- '*'

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build on Windows

on:
push:
branches:
- '*'
paths:
- .github/workflows/build-windows.yml
- build/CMakeLists.txt
Expand All @@ -15,7 +17,9 @@ on:
- Makefile.mingw
tags:
- '*'
pull_request
pull_request:
branches:
- '*'

defaults:
run:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build on Ubuntu

on:
push:
branches:
- '*'
paths:
- .github/workflows/build.yml
- build/CMakeLists.txt
Expand All @@ -14,6 +16,9 @@ on:
- Makefile.linux
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
build-make:
Expand Down

0 comments on commit 8101dbf

Please sign in to comment.