Skip to content

Commit 682d7ef

Browse files
authored
ci: update OS for pkg release (#17454)
1 parent 689b9a0 commit 682d7ef

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/_build-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defaults:
2121
jobs:
2222

2323
init:
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525
steps:
2626
- uses: actions/checkout@v3
2727
- run: |
@@ -38,7 +38,7 @@ jobs:
3838

3939
build-packages:
4040
needs: init
41-
runs-on: ubuntu-20.04
41+
runs-on: ubuntu-22.04
4242
strategy:
4343
max-parallel: 1 # run sequential to prevent download/upload collisions
4444
matrix:

.github/workflows/release-pypi.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defaults:
2222
env:
2323
FREEZE_REQUIREMENTS: 1
2424
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
25+
PYTHON_VER: "3.8"
2526

2627
jobs:
2728

@@ -32,7 +33,7 @@ jobs:
3233

3334

3435
upload-packages:
35-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-22.04
3637
needs: build-packages
3738
if: github.event_name == 'release'
3839
steps:
@@ -50,11 +51,14 @@ jobs:
5051

5152

5253
release-version:
53-
runs-on: ubuntu-20.04
54+
runs-on: ubuntu-22.04
5455
outputs:
5556
tag: ${{ steps.lai-package.outputs.version }}
5657
steps:
5758
- uses: actions/checkout@v3
59+
- uses: actions/setup-python@v4
60+
with:
61+
python-version: ${{ env.PYTHON_VER }}
5862
- name: install Package
5963
run: |
6064
pip install . -f ${TORCH_URL}
@@ -65,15 +69,15 @@ jobs:
6569

6670

6771
signaling:
68-
runs-on: ubuntu-20.04
72+
runs-on: ubuntu-22.04
6973
needs: [release-version]
7074
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
7175
env:
7276
TAG: ${{ needs.release-version.outputs.tag }}
7377
steps:
7478
- uses: actions/setup-python@v4
7579
with:
76-
python-version: 3.8
80+
python-version: ${{ env.PYTHON_VER }}
7781
- uses: actions/checkout@v3
7882
with:
7983
repository: gridai/base-images
@@ -102,7 +106,7 @@ jobs:
102106
103107
104108
waiting:
105-
runs-on: ubuntu-20.04
109+
runs-on: ubuntu-22.04
106110
needs: [release-version, signaling]
107111
env:
108112
TAG: ${{ needs.release-version.outputs.tag }}
@@ -111,7 +115,7 @@ jobs:
111115
- uses: actions/checkout@v3
112116
- uses: actions/setup-python@v4
113117
with:
114-
python-version: 3.8
118+
python-version: ${{ env.PYTHON_VER }}
115119
- run: pip install gitpython
116120
- name: Delay releasing
117121
run: |
@@ -130,7 +134,7 @@ jobs:
130134

131135

132136
pre-publish-packages:
133-
runs-on: ubuntu-20.04
137+
runs-on: ubuntu-22.04
134138
needs: build-packages
135139
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
136140
strategy:
@@ -155,7 +159,7 @@ jobs:
155159

156160

157161
publish-packages:
158-
runs-on: ubuntu-20.04
162+
runs-on: ubuntu-22.04
159163
needs: [build-packages, waiting]
160164
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
161165
strategy:

0 commit comments

Comments
 (0)