GitHub Actions: Only run build when pushing or PR'ing to master branch

This commit is contained in:
David Hrdlička
2025-08-24 22:52:36 +02:00
parent ef1c71ba99
commit 673ea7efd9
3 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ name: CMake (Linux)
on: on:
push: push:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**
@@ -14,6 +15,7 @@ on:
- "!**/Makefile*" - "!**/Makefile*"
pull_request: pull_request:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**

View File

@@ -3,6 +3,7 @@ name: CMake (macos)
on: on:
push: push:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**
@@ -14,6 +15,7 @@ on:
- "!**/Makefile*" - "!**/Makefile*"
pull_request: pull_request:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**

View File

@@ -3,6 +3,7 @@ name: CMake (Windows, msys2)
on: on:
push: push:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**
@@ -14,6 +15,7 @@ on:
- "!**/Makefile*" - "!**/Makefile*"
pull_request: pull_request:
branches: [ "master" ]
paths: paths:
- src/** - src/**
- cmake/** - cmake/**