Skip to content

Commit

Permalink
Update GPU CI updating workflow to parse information from/update GHA …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
charlesbluca committed Sep 27, 2024
1 parent 23e9fd9 commit 200bfc1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/update-gpuci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Parse current axis YAML
- name: Fetch current RAPIDS versions from build matrix
id: parse_yaml
uses: the-coding-turtle/[email protected]
with:
file: ci/axis/dask.yaml
export_to_envs: true
return_to_outputs: false
file: .github/workflows/build.yml
export_to_envs: false
return_to_outputs: true

- name: Get old RAPIDS / UCX-Py versions
env:
OLD_RAPIDS_VER: ${{ steps.parse_yaml.outputs.jobs_docker_strategy_matrix_rapids_0 }}
RAPIDS_VER: ${{ steps.parse_yaml.outputs.jobs_docker_strategy_matrix_rapids_1 }}
run: |
echo OLD_RAPIDS_VER=$RAPIDS_VER_0 >> $GITHUB_ENV
echo OLD_UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER_0) >> $GITHUB_ENV
echo RAPIDS_VER=$RAPIDS_VER_1 >> $GITHUB_ENV
echo UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER_1) >> $GITHUB_ENV
echo OLD_RAPIDS_VER=$OLD_RAPIDS_VER >> $GITHUB_ENV
echo OLD_UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$OLD_RAPIDS_VER) >> $GITHUB_ENV
echo RAPIDS_VER=$RAPIDS_VER >> $GITHUB_ENV
echo UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER) >> $GITHUB_ENV
- name: Get latest cuDF nightly version
id: cudf_latest
Expand Down Expand Up @@ -54,31 +58,27 @@ jobs:
- name: Update new RAPIDS versions
uses: jacobtomlinson/gha-find-replace@v2
with:
include: 'ci/**'
find: "${{ env.RAPIDS_VER }}"
replace: "${{ env.NEW_RAPIDS_VER }}"
regex: false

- name: Update old RAPIDS versions
uses: jacobtomlinson/gha-find-replace@v3
with:
include: 'ci/**'
find: "${{ env.OLD_RAPIDS_VER }}"
replace: "${{ env.RAPIDS_VER }}"
regex: false

- name: Update new UCX-Py versions
uses: jacobtomlinson/gha-find-replace@v3
with:
include: 'ci/**'
find: "${{ env.UCX_PY_VER }}"
replace: "${{ env.NEW_UCX_PY_VER }}"
regex: false

- name: Update old UCX-Py versions
uses: jacobtomlinson/gha-find-replace@v3
with:
include: 'ci/**'
find: "${{ env.OLD_UCX_PY_VER }}"
replace: "${{ env.UCX_PY_VER }}"
regex: false
Expand Down

0 comments on commit 200bfc1

Please sign in to comment.