Skip to content

Commit a872eae

Browse files
improved the NMS ignoring
1 parent 6c49e8c commit a872eae

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ jobs:
3232
distribution: temurin
3333
- name: Setup Gradle
3434
uses: gradle/actions/setup-gradle@v4
35-
- name: Build
36-
run: |
37-
if [ "${{ github.event_name }}" != "release" ]; then
38-
./gradlew build -Pskip_nms=true
39-
else
40-
./gradlew build
41-
fi
35+
36+
- name: Build without NMS
37+
if: ${{ github.event_name != 'release' }}
38+
run: ./gradlew build -Pskip_nms=true
39+
- name: Build with NMS
40+
if: ${{ github.event_name == 'release' }}
41+
run: ./gradlew build -Pskip_nms=false
42+
4243
- name: Upload results
4344
uses: actions/upload-artifact@v4
4445
with:

core/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def preprocessors() {
6666
preprocessors.append("WLIB_INCLUDE_NMS=1")
6767
}
6868

69+
println("Preprocessors: ${preprocessors}")
70+
6971
new File(rootProject.projectDir, "build.properties").text = preprocessors.toString()
7072
}
7173

0 commit comments

Comments
 (0)