Skip to content

Commit 3142877

Browse files
authored
[ci] Add new strategy to run ci on main/master and on Pull Request only if label 'pr: status to review' is present (#52)
* [ci] Add new strategy to run ci on branch only if label to review is present * Update CMakeLists.txt
1 parent bfbaaa1 commit 3142877

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
7+
- master
8+
9+
pull_request:
10+
types: [opened, synchronize, reopened, labeled]
811

912
jobs:
1013
build-and-test:
1114
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
15+
if: >
16+
github.event_name == 'push' ||
17+
contains(github.event.pull_request.labels.*.name, 'pr: status to review')
1218
runs-on: ${{ matrix.os }}
1319
strategy:
1420
fail-fast: false

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020

2121
cmake_minimum_required(VERSION 3.12)
22-
project(InfinyToolkit VERSION 0.1)
22+
project(InfinyToolkit VERSION 0.1 LANGUAGES CXX)
2323

2424
include(cmake/environment.cmake)
2525

0 commit comments

Comments
 (0)