Skip to content

Commit

Permalink
Only workflows runs in container need to downgrade checkout/java-setu…
Browse files Browse the repository at this point in the history
…p actions to @V3. Workflows run directly on runners already have up to date glibc.

Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Sep 17, 2024
1 parent 45a89f6 commit 991917e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,23 @@ jobs:
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

env: # actions/checkout uses node 16
# actions/checkout@v4 and actions/setup-java@v4 use node 20:
# https://github.com/actions/checkout/releases/tag/v4.0.0
# container image does not have GLIBC_2.28 required for this node version
# as such use @v3 actions instead for this workflow and set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set up JDK ${{ matrix.java }} for build and test
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Build with Gradle
id: step-build-test-linux
run: |
Expand Down Expand Up @@ -81,7 +85,7 @@ jobs:

steps:
- name: Checkout Branch
uses: actions/checkout@v4
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: async-plugin-linux-${{ matrix.java }}
Expand Down Expand Up @@ -149,19 +153,16 @@ jobs:
# This job runs on Windows.
runs-on: windows-latest

env: # actions/checkout uses node 16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Build with Gradle
run: ./gradlew.bat build -x integTest -x jacocoTestReport
env:
Expand All @@ -184,19 +185,16 @@ jobs:
# This job runs on Mac OS.
runs-on: macos-latest

env: # actions/checkout uses node 16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Build with Gradle
run: ./gradlew build -x integTest -x jacocoTestReport
env:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
id-token: write
contents: write

env: # actions/checkout uses node 16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,24 @@ jobs:
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

env: # actions/checkout uses node 16
# actions/checkout@v4 and actions/setup-java@v4 use node 20:
# https://github.com/actions/checkout/releases/tag/v4.0.0
# container image does not have GLIBC_2.28 required for this node version
# as such use @v3 actions instead for this workflow and set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: ${{ matrix.java }}

# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Run integration tests with multi node config
run: |
chown -R 1000:1000 `pwd`
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
# This job runs on Linux
runs-on: ubuntu-latest

env: # actions/checkout uses node 16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
Expand Down

0 comments on commit 991917e

Please sign in to comment.