Skip to content

Commit

Permalink
ci: update OS for pkg release (#17454)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Apr 24, 2023
1 parent 689b9a0 commit 682d7ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defaults:
jobs:

init:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
Expand All @@ -38,7 +38,7 @@ jobs:

build-packages:
needs: init
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 1 # run sequential to prevent download/upload collisions
matrix:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defaults:
env:
FREEZE_REQUIREMENTS: 1
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
PYTHON_VER: "3.8"

jobs:

Expand All @@ -32,7 +33,7 @@ jobs:


upload-packages:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: build-packages
if: github.event_name == 'release'
steps:
Expand All @@ -50,11 +51,14 @@ jobs:


release-version:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
tag: ${{ steps.lai-package.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VER }}
- name: install Package
run: |
pip install . -f ${TORCH_URL}
Expand All @@ -65,15 +69,15 @@ jobs:


signaling:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [release-version]
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
env:
TAG: ${{ needs.release-version.outputs.tag }}
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ env.PYTHON_VER }}
- uses: actions/checkout@v3
with:
repository: gridai/base-images
Expand Down Expand Up @@ -102,7 +106,7 @@ jobs:
waiting:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [release-version, signaling]
env:
TAG: ${{ needs.release-version.outputs.tag }}
Expand All @@ -111,7 +115,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ env.PYTHON_VER }}
- run: pip install gitpython
- name: Delay releasing
run: |
Expand All @@ -130,7 +134,7 @@ jobs:


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


publish-packages:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [build-packages, waiting]
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
strategy:
Expand Down

0 comments on commit 682d7ef

Please sign in to comment.