Skip to content

Commit

Permalink
NIFI-12274 Added conditional ASF self-hosted run-on for ci-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
exceptionfactory committed Oct 25, 2023
1 parent bd4ba34 commit c5cd479
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ jobs:
--fail-fast
-P contrib-check
ubuntu-build-en:
build-en:
timeout-minutes: 120
runs-on: ubuntu-latest
name: Ubuntu Corretto JDK 21 EN
runs-on: ${{ github.repository_owner == 'apache' && '["self-hosted", "asf-runner"]' || 'ubuntu-latest' }}
name: Corretto JDK 21 EN
steps:
- name: System Information
run: |
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: surefire-reports-ubuntu-21
name: surefire-reports-en
path: |
./**/target/surefire-reports/*.txt
./**/target/surefire-reports/*.xml
Expand All @@ -174,12 +174,20 @@ jobs:
run: df
if: ${{ always() }}

macos-build-jp:
build-jp:
timeout-minutes: 150
runs-on: macos-latest
name: MacOS Zulu JDK 21 JP
runs-on: ${{ github.repository_owner == 'apache' && '["self-hosted", "asf-arm"]' || 'macos-latest' }}
name: Zulu JDK 21 JP
steps:
- name: System Information
if: github.repository_owner == 'apache'
run: |
hostname
cat /proc/cpuinfo
cat /proc/meminfo
df
- name: System Information
if: github.repository_owner != 'apache'
run: |
hostname
top -l 1 | grep PhysMem
Expand Down Expand Up @@ -228,7 +236,7 @@ jobs:
- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: surefire-reports-macos-jp
name: surefire-reports-jp
path: |
./**/target/surefire-reports/*.txt
./**/target/surefire-reports/*.xml
Expand Down

0 comments on commit c5cd479

Please sign in to comment.