Skip to content

Commit bcda0f8

Browse files
committed
switch ubuntu runners to a shared pool
1 parent 509035d commit bcda0f8

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
- os: 'ubuntu-20.04'
3737
build_type: Release
3838
compiler: {c: gcc-7, cxx: g++-7}
39-
40-
runs-on: ${{matrix.os}}
39+
runs-on: ${{ (matrix.os == 'ubuntu-22.04' && github.repository_owner == 'oneapi-src') && 'intel-ubuntu-22.04' || matrix.os }}
4140

4241
steps:
4342
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -50,6 +49,9 @@ jobs:
5049
- name: Install libhwloc
5150
run: .github/scripts/install_hwloc.sh
5251

52+
- name: Setup PATH
53+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
54+
5355
- name: Install g++-7
5456
if: matrix.compiler.cxx == 'g++-7'
5557
run: |

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
analyze-ubuntu:
1414
name: Analyze on Ubuntu
15-
runs-on: ubuntu-latest
15+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
1616
permissions:
1717
security-events: write
1818

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323
jobs:
2424
# Build job
2525
build:
26-
runs-on: ubuntu-latest
26+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -57,7 +57,7 @@ jobs:
5757
environment:
5858
name: github-pages
5959
url: ${{ steps.deployment.outputs.page_url }}
60-
runs-on: ubuntu-latest
60+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
6161
needs: build
6262
steps:
6363
- name: Deploy to GitHub Pages

.github/workflows/e2e_core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ permissions:
5454
jobs:
5555
changed-files:
5656
name: Check for changed files
57-
runs-on: ubuntu-22.04
57+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
5858
outputs:
5959
any_changed: ${{ steps.get-changed.outputs.any_changed }}
6060
steps:

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
permissions:
1919
contents: read
2020
pull-requests: write
21-
runs-on: ubuntu-latest
21+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
2222
steps:
2323
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
weekly-prerelease:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
1515
permissions:
1616
contents: write
1717
steps:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: read-all
1717
jobs:
1818
analysis:
1919
name: Scorecard analysis
20-
runs-on: ubuntu-latest
20+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
2121
permissions:
2222
# Needed to upload the results to code-scanning dashboard.
2323
security-events: write

.github/workflows/trivy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
linux:
2121
name: Trivy
22-
runs-on: ubuntu-latest
22+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
2323
permissions:
2424
security-events: write
2525

0 commit comments

Comments
 (0)