This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a commit to branch fix/update-build
in repository https://gitbox.apache.org/repos/asf/logging-flume.git

commit 97a33b93adbf1757889eced1eb1f3c9d73742441
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue May 19 20:48:28 2026 +0200

    Upgrades and simplifies build
    
    The Maven build was stuck at version 2.x of `actions/checkout` and 
`actions/setup-java`. This change:
    
    - Upgrades the actions to the newest version,
    - Adds a test on Windows,
    - Simplifies the build by removing the steps that were meant to make more 
space on the runner. These are not necessarily needed on newer runners.
---
 .github/workflows/build.yml | 38 ++++++++++----------------------------
 1 file changed, 10 insertions(+), 28 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 686e1ed9f..96b7a27ff 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -26,45 +26,30 @@ jobs:
   build:
 
     runs-on: ${{ matrix.os }}
+    name: build (${{ matrix.os }})
 
     strategy:
       matrix:
-        os: [ ubuntu-latest, macos-latest ]
+        os: [ ubuntu-latest, windows-latest ]
+        java-distribution: [ temurin ]
+        include:
+          # There is no Temurin JDK 8 for ARM
+          - os: macos-latest
+            java-distribution: zulu
 
     steps:
 
       - name: Checkout repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v6
 
       # JDK 8 is needed for the build, and it is the primary bytecode target.
       - name: Setup JDK 8
-        uses: actions/[email protected]
+        uses: actions/setup-java@v5
         with:
-          distribution: temurin
+          distribution: ${{ matrix.java-distribution }}
           java-version: 8
-          java-package: jdk
-          architecture: x64
           cache: maven
 
-      - name: Inspect environment (Linux)
-        if: runner.os == 'Linux'
-        run: env | grep '^JAVA'
-
-      - name: Inspect environment (MacOS)
-        if: runner.os == 'macOS'
-        run: env | grep '^JAVA'
-        
-      - name: Show disk usage before
-        run: df -kh
-        
-      - name: Remove unwanted packages
-        run: |
-            sudo rm -rf /usr/share/dotnet
-            sudo rm -rf /usr/local/lib/android
-            
-      - name: Show disk usage before maven
-        run: df -kh
-
       - name: Build with Maven
         timeout-minutes: 120
         shell: bash
@@ -73,6 +58,3 @@ jobs:
           --show-version --batch-mode --errors --no-transfer-progress \
           -DtrimStackTrace=false \
           -Dsurefire.rerunFailingTestsCount=2
-          
-      - name: Show disk usage after
-        run: df -kh        

Reply via email to