Skip to content

Commit

Permalink
manually configure ci workflow to run modules for spcific java verions
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Oct 10, 2024
1 parent e5288cd commit ad35c7c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java-version: ['19', '21', '22']
java-version: ['21', '22']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{matrix.java-version}} PR
Expand All @@ -41,6 +41,31 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml

build-all:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ['19']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{matrix.java-version}} PR
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java-version}}
distribution: 'temurin'
# Step that does that actual cache save and restore
- name: Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package -p all --file pom.xml

build-and-snapshot:
runs-on: ubuntu-latest
strategy:
Expand Down
11 changes: 1 addition & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -710,19 +710,10 @@
</build>
</profile>

<profile>
<id>java19-less</id>
<activation>
<jdk>(,17,18,19,20]</jdk>
</activation>
<modules>
<module>gremlin</module>
</modules>
</profile>

<profile>
<id>all</id>
<modules>
<module>gremlin</module>
<module>studio</module>
</modules>
</profile>
Expand Down

0 comments on commit ad35c7c

Please sign in to comment.