Skip to content

Commit a81c340

Browse files
snnnankitm3k
authored andcommitted
Move Linux Github actions to a dedicated pool (microsoft#22566)
### Description Move Linux Github actions to a dedicated pool. Currently the "orttraining-linux-ci-pipeline " is too slow. ### Motivation and Context To speed up the running.
1 parent 6be5a54 commit a81c340

16 files changed

+31
-24
lines changed

.github/workflows/cffconvert.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
validate:
1010
name: "validate"
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- name: Check out a copy of the repository
1414
uses: actions/checkout@v4

.github/workflows/codeql.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
analyze:
2020
name: Analyze
21-
runs-on: ubuntu-latest
21+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2222
permissions:
2323
actions: read
2424
contents: read
@@ -55,6 +55,11 @@ jobs:
5555
java-version: '11'
5656
distribution: 'microsoft'
5757

58+
- if: ${{ matrix.language == 'javascript' }}
59+
uses: actions/setup-node@v4
60+
with:
61+
node-version: 20
62+
5863
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5964
# If this step fails, then you should remove it and run the build manually (see below)
6065
- if: ${{ matrix.language != 'cpp' }}

.github/workflows/gradle-wrapper-validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on: [push, pull_request]
88
jobs:
99
validation:
1010
name: "Validation"
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: gradle/actions/wrapper-validation@v4

.github/workflows/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
triage:
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- uses: github/[email protected]
1414
with:

.github/workflows/lint.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
lint-python-format:
3737
# Required workflow
3838
name: Python format
39-
runs-on: ubuntu-latest
39+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
4040
steps:
4141
- uses: actions/checkout@v4
4242
- name: Setup Python
@@ -114,9 +114,12 @@ jobs:
114114

115115
lint-js:
116116
name: Lint JavaScript
117-
runs-on: ubuntu-latest
117+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
118118
steps:
119119
- uses: actions/checkout@v4
120+
- uses: actions/setup-node@v4
121+
with:
122+
node-version: 20
120123
- uses: reviewdog/action-eslint@v1
121124
with:
122125
reporter: github-pr-check

.github/workflows/linux_training.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ concurrency:
1212

1313
jobs:
1414
orttraining-linux-ci-pipeline:
15-
runs-on: ubuntu-24.04
15+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1616
permissions:
1717
actions: read
1818
contents: read
1919
security-events: write
2020
steps:
2121
- uses: actions/checkout@v4
2222
- run: |
23-
python3 -m pip install -r tools/ci_build/github/linux/python/requirements.txt
23+
python3 -m pip install --user -r tools/ci_build/github/linux/python/requirements.txt
2424
- name: Initialize CodeQL
2525
uses: github/codeql-action/init@v3
2626
with:

.github/workflows/pr_checks.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
jobs:
2020
auto-apply-fixes:
2121
name: Suggest fixes
22-
runs-on: ubuntu-latest
22+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2323
permissions:
2424
contents: read
2525
pull-requests: write
@@ -34,14 +34,13 @@ jobs:
3434
with:
3535
toolchain: stable
3636
components: rustfmt
37-
- name: Install dependencies
37+
- name: Install dependencies and run lintrunner on all files
3838
run: |
39-
python -m pip install -r requirements-dev.txt
40-
python -m pip install lintrunner lintrunner-adapters
39+
export PATH=$HOME/.local/bin:$PATH
40+
set -e
41+
python -m pip install --user -r requirements-dev.txt
42+
python -m pip install --user lintrunner lintrunner-adapters
4143
lintrunner init
42-
- name: Run lintrunner on all files
43-
run: |
44-
set +e
4544
lintrunner f --all-files -v
4645
exit 0
4746
- uses: parkerbxyz/suggest-changes@v1

.github/workflows/publish-c-apidocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
build:
2424
name: Generate C/C++ API docs
25-
runs-on: ubuntu-latest
25+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Install doxygen and dependencies

.github/workflows/publish-csharp-apidocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020

2121
jobs:
2222
build:
23-
runs-on: ubuntu-latest
23+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2424
env:
2525
DOCFXVERSION: 2.62.2
2626
steps:

.github/workflows/publish-gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
placeholder:
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- name: Placeholder step to have workflow included in the GitHub web UI
1414
run: |

.github/workflows/publish-java-apidocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
build:
2323
name: Generate Java docs
24-
runs-on: ubuntu-latest
24+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2525
steps:
2626
- uses: actions/checkout@v4
2727
- name: Set up JDK 11

.github/workflows/publish-js-apidocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
build:
2323
name: Generate JS API docs
24-
runs-on: ubuntu-latest
24+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2525
steps:
2626
- uses: actions/checkout@v4
2727
- name: Setup Node.js

.github/workflows/publish-python-apidocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
build:
2424
name: Generate Python API docs
25-
runs-on: ubuntu-latest
25+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Install tools

.github/workflows/skip-doc-change.yml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
{%- for name in job_names %}
1515
job{{ loop.index }}:
1616
name: {{ name }}
17-
runs-on: ubuntu-latest
17+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1818
steps:
1919
- run: 'echo "No build required, only documentation changed"'
2020
{% endfor %}

.github/workflows/stale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
close-stale-issues:
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
permissions:
1313
issues: write
1414
pull-requests: write

.github/workflows/title-only-labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
triage:
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- uses: github/[email protected]
1414
with:

0 commit comments

Comments
 (0)