File tree Expand file tree Collapse file tree 3 files changed +65
-2
lines changed Expand file tree Collapse file tree 3 files changed +65
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,8 @@ charset = utf-8
8
8
trim_trailing_whitespace = true
9
9
insert_final_newline = true
10
10
11
+ [* .{yaml,yml} ]
12
+ indent_size = 2
13
+
11
14
[gradle/verification-metadata.xml ]
12
15
indent_size = 3
Original file line number Diff line number Diff line change
1
+ name : " Build"
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [ master ]
9
+
10
+ jobs :
11
+ build :
12
+ strategy :
13
+ matrix :
14
+ os :
15
+ - macos-12
16
+ - macos-13
17
+ - macos-14
18
+ - ubuntu-20.04
19
+ - ubuntu-22.04
20
+ - ubuntu-24.04
21
+ - windows-2019
22
+ - windows-2022
23
+
24
+ runs-on : ${{ matrix.os }}
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+
28
+ - name : Set up JDK
29
+ uses : actions/setup-java@v4
30
+ with :
31
+ distribution : ' temurin'
32
+ java-version : ' 17'
33
+
34
+ - name : Setup Gradle
35
+ uses : gradle/actions/setup-gradle@v3
36
+ with :
37
+ build-scan-publish : true
38
+ build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
39
+ build-scan-terms-of-use-agree : " yes"
40
+
41
+ - name : Build
42
+ run : ./gradlew :file-events:check
43
+
44
+ - name : Check for JVM crash logs
45
+ if : failure()
46
+ run : |
47
+ mkdir -p crash_logs
48
+ find . -name 'hs_err_pid*.log' -exec mv {} crash_logs/ \;
49
+ if [ -n "$(ls -A crash_logs)" ]; then
50
+ echo "JVM crash logs found."
51
+ else
52
+ echo "No JVM crash logs found."
53
+ fi
54
+
55
+ - name : Upload JVM crash logs
56
+ if : failure()
57
+ uses : actions/upload-artifact@v3
58
+ with :
59
+ name : jvm-crash-logs-${{ matrix.os }}
60
+ path : crash_logs/
Original file line number Diff line number Diff line change 35
35
36
36
steps :
37
37
- name : Checkout repository
38
- uses : actions/checkout@v2
38
+ uses : actions/checkout@v4
39
39
40
40
# Initializes the CodeQL tools for scanning.
41
41
- name : Initialize CodeQL
52
52
- name : Autobuild (Java)
53
53
uses : github/codeql-action/autobuild@v1
54
54
if : ${{ matrix.language == 'java' }}
55
-
55
+
56
56
- name : Autobuild (cpp)
57
57
run : ./gradlew assemble
58
58
if : ${{ matrix.language == 'cpp' }}
You can’t perform that action at this time.
0 commit comments