Skip to content

Commit 53d2bd6

Browse files
authored
Update GitHub Actions to latest versions (microsoft#1749)
This PR updates the GitHub Actions to their latest versions as requested.
1 parent aac66dd commit 53d2bd6

14 files changed

+38
-40
lines changed

.github/workflows/android-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2204-AMD-CPU"]
2626
steps:
2727
- name: Checkout OnnxRuntime GenAI repo
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929
with:
3030
submodules: true
3131

3232
- name: Setup Java 17
33-
uses: actions/setup-java@v4
33+
uses: actions/setup-java@v5
3434
with:
3535
java-version: '17'
3636
distribution: 'temurin'
@@ -72,7 +72,7 @@ jobs:
7272
sudo apt-get install jq
7373
7474
- name: Checkout OnnxRuntime GenAI repo
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v5
7676
with:
7777
submodules: true
7878

.github/workflows/clang-format-lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
concurrency:
15-
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref
16-
|| github.sha }}
15+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
1716
cancel-in-progress: true
1817

1918
jobs:
@@ -23,7 +22,7 @@ jobs:
2322
- "1ES.Pool=onnxruntime-genai-Ubuntu2204-AMD-CPU"
2423
steps:
2524
- name: Checkout code
26-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2726
with:
2827
submodules: 'false'
2928

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v5
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/ios-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: macos-latest # arm64
1515
steps:
1616
- name: Checkout OnnxRuntime GenAI repo
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
submodules: true
2020

21-
- uses: actions/setup-python@v5
21+
- uses: actions/setup-python@v6
2222
with:
2323
python-version: '3.12.x'
2424

.github/workflows/linux-cpu-arm64-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2004-ARM-CPU"]
2222
steps:
2323
- name: Checkout OnnxRuntime GenAI repo
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525
with:
2626
submodules: 'true'
2727

28-
- uses: actions/setup-dotnet@v4
28+
- uses: actions/setup-dotnet@v5
2929
with:
3030
dotnet-version: '8.0.x'
3131

.github/workflows/linux-cpu-x64-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2204-AMD-CPU"]
2020
steps:
2121
- name: Checkout OnnxRuntime GenAI repo
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
with:
2424
submodules: true
2525

26-
- uses: actions/setup-dotnet@v4
26+
- uses: actions/setup-dotnet@v5
2727
with:
2828
dotnet-version: '8.0.x'
2929

3030
- name: Setup Java 17
31-
uses: actions/setup-java@v4
31+
uses: actions/setup-java@v5
3232
with:
3333
java-version: '17'
3434
distribution: 'temurin'

.github/workflows/linux-cpu-x64-nightly-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ env:
1717
ort_url: "https://github.com/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-1.18.0.tgz"
1818
jobs:
1919
job:
20-
runs-on: [ "self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2204-AMD-CPU" ]
20+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2204-AMD-CPU"]
2121
steps:
2222
- name: Checkout OnnxRuntime GenAI repo
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v5
2424

2525
- uses: microsoft/onnxruntime-github-actions/[email protected]
2626
with:
@@ -30,7 +30,6 @@ jobs:
3030
cmake-hash: '42395e20b10a8e9ef3e33014f9a4eed08d46ab952e02d2c1bbc8f6133eca0d7719fb75680f9bbff6552f20fcd1b73d86860f7f39388d631f98fb6f622b37cf04'
3131
add-cmake-to-path: 'true'
3232
disable-terrapin: 'true'
33-
3433
- name: Install Rust with rustup
3534
run: |
3635
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -40,11 +39,11 @@ jobs:
4039
rustup override set 1.86.0
4140
rustup component add rust-src
4241
rustup show active-toolchain
43-
42+
4443
- name: Git Submodule Update
4544
run: |
4645
git submodule update --init --recursive
47-
46+
4847
- name: Build with CMake and clang
4948
run: |
5049
set -e -x

.github/workflows/linux-gpu-x64-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ jobs:
2424
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-Ubuntu2204-A10"]
2525
steps:
2626
- name: Checkout OnnxRuntime GenAI repo
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
with:
2929
submodules: true
3030
# We are using the same manylinux repo as the one used in the packaging build
3131
- name: Checkout ManyLinux repo
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333
with:
3434
repository: pypa/manylinux
3535
ref: 5eda9aded5462201e6310105728d33016e637ea7
3636
clean: true
3737
path: manylinux
3838
submodules: true
3939

40-
- uses: actions/setup-dotnet@v4
40+
- uses: actions/setup-dotnet@v5
4141
with:
4242
dotnet-version: '8.0.x'
4343

.github/workflows/mac-cpu-arm64-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
runs-on: macos-latest # arm64
1919
steps:
2020
- name: Checkout OnnxRuntime GenAI repo
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
with:
2323
submodules: true
2424

25-
- uses: actions/setup-python@v5
25+
- uses: actions/setup-python@v6
2626
with:
2727
python-version: '3.12.x'
2828

2929
- name: Setup Java 17
30-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@v5
3131
with:
3232
java-version: '17'
3333
distribution: 'temurin'

.github/workflows/win-cpu-arm64-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-genai-win11-arm64-cpu2"]
2121
steps:
2222
- name: Checkout OnnxRuntime GenAI repo
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424
with:
2525
submodules: true
2626

@@ -29,14 +29,14 @@ jobs:
2929
nuget-version: '5.x'
3030

3131
- name: Set up Python 3.12 for ARM64
32-
uses: actions/setup-python@v5
32+
uses: actions/setup-python@v6
3333
with:
3434
python-version: '3.12'
3535
architecture: 'arm64'
3636
cache: 'pip'
3737

3838
- name: Setup Java 21
39-
uses: actions/setup-java@v4
39+
uses: actions/setup-java@v5
4040
with:
4141
java-version: '21'
4242
distribution: 'temurin'

0 commit comments

Comments
 (0)