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 5
5
branches : [ main ]
6
6
tags :
7
7
- ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8
+ pull_request :
9
+ types :
10
+ - opened
11
+ - synchronize
8
12
9
13
jobs :
10
14
build :
@@ -23,16 +27,17 @@ jobs:
23
27
java-version : ' 17'
24
28
distribution : ' temurin'
25
29
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'
28
33
29
34
- name : Gather version name from git describe
30
35
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
32
38
33
- # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
34
- # the publishing section of your build.gradle
35
39
- name : Publish to GitHub Packages
40
+ if : github.event_name == 'push'
36
41
run : ./gradlew publish
37
42
env :
38
43
GITHUB_USER : ${{ github.actor }}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ project("session_util")
13
13
set (CMAKE_CXX_STANDARD 17)
14
14
set (CMAKE_CXX_STANDARD_REQUIRED ON )
15
15
set (CMAKE_CXX_EXTENSIONS OFF )
16
+ set (CMAKE_CXX_FLAGS -Wno-deprecated-declarations)
16
17
17
18
set (CMAKE_BUILD_TYPE Release)
18
19
You can’t perform that action at this time.
0 commit comments