File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 55 branches : [ main ]
66 tags :
77 - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+ pull_request :
9+ types :
10+ - opened
11+ - synchronize
812
913jobs :
1014 build :
@@ -23,16 +27,17 @@ jobs:
2327 java-version : ' 17'
2428 distribution : ' temurin'
2529
26- - name : Build with Gradle
27- run : ./gradlew build
30+ - name : Verify build for PR
31+ run : ./gradlew check
32+ if : github.event_name == 'pull_request'
2833
2934 - name : Gather version name from git describe
3035 id : version
31- run : echo ::set-output name=version::$(git describe --tags --dirty)
36+ if : github.event_name == 'push'
37+ run : echo version=$(git describe --tags --dirty) >> $GITHUB_OUTPUT
3238
33- # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
34- # the publishing section of your build.gradle
3539 - name : Publish to GitHub Packages
40+ if : github.event_name == 'push'
3641 run : ./gradlew publish
3742 env :
3843 GITHUB_USER : ${{ github.actor }}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ project("session_util")
1313set (CMAKE_CXX_STANDARD 17)
1414set (CMAKE_CXX_STANDARD_REQUIRED ON )
1515set (CMAKE_CXX_EXTENSIONS OFF )
16+ set (CMAKE_CXX_FLAGS -Wno-deprecated-declarations)
1617
1718set (CMAKE_BUILD_TYPE Release)
1819
You can’t perform that action at this time.
0 commit comments