Skip to content

Commit

Permalink
Only do a separate compile for Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
j0rdanit0 committed Oct 1, 2023
1 parent 45c1e9a commit c200128
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@ on:
branches: [ master ]

jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21 ]
name: Java ${{ matrix.java }} compile
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: 'maven'
- run: mvn -f pom.xml clean compile

build:
runs-on: ubuntu-latest
name: Build, test, deploy
Expand Down Expand Up @@ -73,4 +57,20 @@ jobs:
export EL_PUENTE_WEBAPP_GOOGLE_MAPS_API_KEY_PROD=${{ secrets.GOOGLE_MAPS_API_KEY_PROD }}
export EL_PUENTE_WEBAPP_GOOGLE_ANALYTICS_TRACKING_ID=${{ secrets.GOOGLE_ANALYTICS_TRACKING_ID }}
sh deploy.sh webapp-beta
script_stop: true
script_stop: true

compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 21 ]
name: Java ${{ matrix.java }} compile
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: 'maven'
- run: mvn -f pom.xml clean compile

0 comments on commit c200128

Please sign in to comment.