Skip to content

Commit

Permalink
Build with JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Feb 12, 2024
1 parent f293439 commit ca33762
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: sudo -- sh -c "export methodscript_run_llvm_integration_tests=1 && export PATH=$JAVA_HOME/bin:\$PATH && export JAVA_HOME=$JAVA_HOME && mvn -version && mvn -B clean package --file pom.xml -Pfail-on-test-failures"
Expand All @@ -24,23 +24,23 @@ jobs:
methodscript_run_llvm_integration_tests: 1
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B clean package --file pom.xml -Pfail-on-test-failures
build_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
env:
methodscript_run_llvm_integration_tests: 1
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -version && mvn -B clean package --file pom.xml -Pfail-on-test-failures
Expand All @@ -53,10 +53,10 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: sudo -- sh -c "export methodscript_run_llvm_integration_tests=1 && export PATH=$JAVA_HOME/bin:\$PATH && export JAVA_HOME=$JAVA_HOME && mvn -version && mvn -B clean package --file pom.xml -Pfail-on-test-failures"
Expand All @@ -25,10 +25,10 @@ jobs:
methodscript_run_llvm_integration_tests: 1
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B clean package --file pom.xml -Pfail-on-test-failures
Expand Down

0 comments on commit ca33762

Please sign in to comment.