Skip to content

Commit

Permalink
Remove default Java installs so they are not used
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 30, 2024
1 parent d13e518 commit 4cca4a3
Showing 1 changed file with 71 additions and 1 deletion.
72 changes: 71 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-${{ matrix.java-version }}-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
Expand All @@ -50,6 +55,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand All @@ -75,6 +85,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -105,6 +120,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-${{ matrix.java-version }}-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -132,6 +152,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-${{ matrix.java-version }}-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -162,6 +187,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-${{ matrix.java-version }}-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -189,6 +219,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -217,6 +252,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand All @@ -242,6 +282,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand All @@ -263,6 +308,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -298,7 +348,12 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up java
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
Expand All @@ -320,6 +375,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -396,6 +456,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-${{ matrix.java-version }}-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -424,6 +489,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: replace default java
run: |
sudo apt update
sudo apt install openjdk-17-jdk
sudo apt remove temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk
- name: set up java 17
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 4cca4a3

Please sign in to comment.