Skip to content

Commit 429a660

Browse files
committed
speed up CI
1 parent 86ec3b0 commit 429a660

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,46 +16,13 @@ jobs:
1616
concurrent_skipping: 'same_content'
1717
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
1818
paths_ignore: '["**/*.md"]'
19-
build:
20-
name: Build
21-
runs-on: ${{ matrix.platform }}
22-
needs: [check_duplicate_workflows]
23-
if: ${{ needs.check_duplicate_workflows.outputs.should_skip != 'true' }}
24-
strategy:
25-
matrix:
26-
java: [ '8', '11', '16' ]
27-
platform: ['windows-latest', 'ubuntu-latest']
28-
steps:
29-
- uses: actions/checkout@v3
30-
- name: Set up JDK ${{ matrix.java }}
31-
uses: actions/setup-java@v3
32-
with:
33-
distribution: 'adopt'
34-
java-version: ${{ matrix.java }}
35-
cache: 'gradle'
36-
- name: print Java version
37-
run: java -version
38-
- name: Set JVM options for JDK 16
39-
if: ${{ matrix.java == 16 }}
40-
run: echo org.gradle.jvmargs="--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
41-
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
42-
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
43-
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
44-
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
45-
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
46-
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
47-
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" >> gradle.properties
48-
- name: Run build
49-
run: ./gradlew clean assemble --info
50-
5119
test:
5220
name: Test
5321
runs-on: ${{ matrix.platform }}
54-
needs: [build]
5522
strategy:
5623
matrix:
57-
java: [ '8', '11', '16' ]
58-
platform: ['windows-latest', 'ubuntu-latest']
24+
java: [ '17' ]
25+
platform: ['windows-latest']
5926
steps:
6027
- uses: actions/checkout@v3
6128
- name: Gradle wrapper validation

0 commit comments

Comments
 (0)