Skip to content

Commit 54dc406

Browse files
SessionHero01SessionHero01
authored andcommitted
Disable C++ warning and fine tune CI script
1 parent b1e1782 commit 54dc406

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
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

913
jobs:
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 }}

library/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ project("session_util")
1313
set(CMAKE_CXX_STANDARD 17)
1414
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1515
set(CMAKE_CXX_EXTENSIONS OFF)
16+
set(CMAKE_CXX_FLAGS -Wno-deprecated-declarations)
1617

1718
set(CMAKE_BUILD_TYPE Release)
1819

0 commit comments

Comments
 (0)