You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/03/26 21:42:45 UTC

[logging-log4j2] branch master updated: Split up GitHub Actions build matrix

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

mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c81f9c  Split up GitHub Actions build matrix
3c81f9c is described below

commit 3c81f9c1e21a6a63ffc4d4ecda8a30801204c66c
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sat Mar 26 16:42:27 2022 -0500

    Split up GitHub Actions build matrix
---
 .github/workflows/{build.yml => linux.yml}   | 22 +++-------------------
 .github/workflows/{build.yml => macos.yml}   | 22 +++-------------------
 .github/workflows/{build.yml => windows.yml} | 22 +++-------------------
 3 files changed, 9 insertions(+), 57 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/linux.yml
similarity index 57%
copy from .github/workflows/build.yml
copy to .github/workflows/linux.yml
index 17097fb..3004dbb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/linux.yml
@@ -1,4 +1,4 @@
-name: build
+name: linux
 
 on:
   push:
@@ -9,11 +9,7 @@ on:
 jobs:
   build:
 
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
+    runs-on: ubuntu-latest
 
     steps:
 
@@ -29,20 +25,8 @@ jobs:
           architecture: x64
           cache: 'maven'
 
-      - name: Inspect environment (Linux)
-        if: runner.os == 'Linux'
-        run: env | grep '^JAVA'
-
-      - name: Inspect environment (Windows)
-        if: runner.os == 'Windows'
-        run: set java
-
-      - name: Inspect environment (MacOS)
-        if: runner.os == 'macOS'
-        run: env | grep '^JAVA'
-
       - name: Build with Maven
-        timeout-minutes: 60
+        timeout-minutes: 90
         shell: bash
         run: |
           ./mvnw \
diff --git a/.github/workflows/build.yml b/.github/workflows/macos.yml
similarity index 57%
copy from .github/workflows/build.yml
copy to .github/workflows/macos.yml
index 17097fb..74b8e7a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/macos.yml
@@ -1,4 +1,4 @@
-name: build
+name: macos
 
 on:
   push:
@@ -9,11 +9,7 @@ on:
 jobs:
   build:
 
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
+    runs-on: macos-latest
 
     steps:
 
@@ -29,20 +25,8 @@ jobs:
           architecture: x64
           cache: 'maven'
 
-      - name: Inspect environment (Linux)
-        if: runner.os == 'Linux'
-        run: env | grep '^JAVA'
-
-      - name: Inspect environment (Windows)
-        if: runner.os == 'Windows'
-        run: set java
-
-      - name: Inspect environment (MacOS)
-        if: runner.os == 'macOS'
-        run: env | grep '^JAVA'
-
       - name: Build with Maven
-        timeout-minutes: 60
+        timeout-minutes: 90
         shell: bash
         run: |
           ./mvnw \
diff --git a/.github/workflows/build.yml b/.github/workflows/windows.yml
similarity index 57%
rename from .github/workflows/build.yml
rename to .github/workflows/windows.yml
index 17097fb..d13018c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/windows.yml
@@ -1,4 +1,4 @@
-name: build
+name: windows
 
 on:
   push:
@@ -9,11 +9,7 @@ on:
 jobs:
   build:
 
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
+    runs-on: windows-latest
 
     steps:
 
@@ -29,20 +25,8 @@ jobs:
           architecture: x64
           cache: 'maven'
 
-      - name: Inspect environment (Linux)
-        if: runner.os == 'Linux'
-        run: env | grep '^JAVA'
-
-      - name: Inspect environment (Windows)
-        if: runner.os == 'Windows'
-        run: set java
-
-      - name: Inspect environment (MacOS)
-        if: runner.os == 'macOS'
-        run: env | grep '^JAVA'
-
       - name: Build with Maven
-        timeout-minutes: 60
+        timeout-minutes: 90
         shell: bash
         run: |
           ./mvnw \