actions/setup-java@v4

This commit is contained in:
Simon Legner 2024-03-27 22:13:01 +01:00
parent db10ff0949
commit fa266b6f9b
1 changed files with 16 additions and 12 deletions

View File

@ -8,10 +8,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: sudo apt-get install protobuf-compiler - run: sudo apt-get install protobuf-compiler
- name: Set up JDK 1.8 - name: Set up JDK 8
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 1.8 distribution: zulu
java-version: 8
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
@ -20,10 +21,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: sudo apt-get install protobuf-compiler - run: sudo apt-get install protobuf-compiler
- name: Set up JDK 1.8 - name: Set up JDK 8
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 1.8 distribution: zulu
java-version: 8
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
@ -32,10 +34,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: sudo apt-get install protobuf-compiler libprotobuf-java - run: sudo apt-get install protobuf-compiler libprotobuf-java
- name: Set up JDK 1.8 - name: Set up JDK 8
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 1.8 distribution: zulu
java-version: 8
- name: Build with Ant - name: Build with Ant
run: ant run: ant
@ -44,10 +47,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: sudo apt-get install protobuf-compiler libprotobuf-java - run: sudo apt-get install protobuf-compiler libprotobuf-java
- name: Set up JDK 1.8 - name: Set up JDK 8
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 1.8 distribution: zulu
java-version: 8
- name: Build with Ant - name: Build with Ant
run: ant run: ant