Skip to content

Commit e5478cc

Browse files
committed
update ci
1 parent 58898e1 commit e5478cc

File tree

2 files changed

+22
-39
lines changed

2 files changed

+22
-39
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,23 @@ on:
1010
branches:
1111
- main
1212
- master
13+
workflow_dispatch:
1314

1415
jobs:
16+
validate_gradle_wrapper:
17+
name: "Validate Gradle Wrapper"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: gradle/actions/wrapper-validation@v4
22+
1523
build:
1624
name: Build and Test
25+
needs: validate_gradle_wrapper
1726
runs-on: ${{ matrix.os }}
1827
strategy:
1928
matrix:
2029
os: [ubuntu-latest, macos-latest]
21-
java: [25]
2230
fail-fast: false
2331

2432
steps:
@@ -27,10 +35,10 @@ jobs:
2735
with:
2836
submodules: recursive
2937

30-
- name: Set up JDK ${{ matrix.java }}
31-
uses: actions/setup-java@v4
38+
- name: Set up JDK 25
39+
uses: actions/setup-java@v5
3240
with:
33-
java-version: ${{ matrix.java }}
41+
java-version: 25
3442
distribution: 'temurin'
3543
cache: 'gradle'
3644

@@ -58,25 +66,21 @@ jobs:
5866
- name: Build bitcoinkernel
5967
run: |
6068
cd bitcoinkernel/bitcoin
61-
cmake -B build -DBUILD_KERNEL_LIB=ON -DCMAKE_BUILD_TYPE=Release
69+
cmake -B build -DBUILD_KERNEL_LIB=ON -DBUILD_UTIL_CHAINSTATE=ON -DBUILD_KERNEL_TEST=ON -DENABLE_IPC=OFF
6270
cmake --build build -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
6371
sudo cmake --install build
6472
6573
- name: Grant execute permission for gradlew
6674
run: chmod +x gradlew
6775

6876
- name: Build with Gradle
69-
run: ./gradlew build --no-daemon --stacktrace
70-
71-
- name: Run tests
72-
run: ./gradlew test --no-daemon --stacktrace
73-
continue-on-error: false
77+
run: ./gradlew build
7478

7579
- name: Upload test results
7680
if: always()
7781
uses: actions/upload-artifact@v4
7882
with:
79-
name: test-results-${{ matrix.os }}-java${{ matrix.java }}
83+
name: test-results-${{ matrix.os }}-java25
8084
path: |
8185
build/reports/tests/
8286
build/test-results/
@@ -85,32 +89,5 @@ jobs:
8589
if: success()
8690
uses: actions/upload-artifact@v4
8791
with:
88-
name: build-artifacts-${{ matrix.os }}-java${{ matrix.java }}
92+
name: build-artifacts-${{ matrix.os }}-java25
8993
path: build/libs/
90-
91-
code-quality:
92-
name: Code Quality Checks
93-
runs-on: ubuntu-latest
94-
95-
steps:
96-
- name: Checkout code
97-
uses: actions/checkout@v4
98-
with:
99-
fetch-depth: 0
100-
101-
- name: Set up JDK 25
102-
uses: actions/setup-java@v4
103-
with:
104-
java-version: 25
105-
distribution: 'temurin'
106-
cache: 'gradle'
107-
108-
- name: Grant execute permission for gradlew
109-
run: chmod +x gradlew
110-
111-
- name: Run checkstyle (if configured)
112-
run: ./gradlew checkstyleMain checkstyleTest --no-daemon
113-
continue-on-error: true
114-
115-
- name: Run spotbugs (if configured)
116-
run: ./gradlew spotbugsMain --no-daemon

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ plugins {
33
id 'application'
44
}
55

6+
java {
7+
toolchain {
8+
languageVersion = JavaLanguageVersion.of(25)
9+
}
10+
}
11+
612
repositories {
713
mavenCentral()
814
}

0 commit comments

Comments
 (0)