Skip to content

Commit e5f66da

Browse files
committed
Add GitHub build
1 parent 2583018 commit e5f66da

File tree

3 files changed

+65
-2
lines changed

3 files changed

+65
-2
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11+
[*.{yaml,yml}]
12+
indent_size = 2
13+
1114
[gradle/verification-metadata.xml]
1215
indent_size = 3

.github/workflows/build.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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/

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
@@ -52,7 +52,7 @@ jobs:
5252
- name: Autobuild (Java)
5353
uses: github/codeql-action/autobuild@v1
5454
if: ${{ matrix.language == 'java' }}
55-
55+
5656
- name: Autobuild (cpp)
5757
run: ./gradlew assemble
5858
if: ${{ matrix.language == 'cpp' }}

0 commit comments

Comments
 (0)