Skip to content

Commit ab734c7

Browse files
amielczaigcbot
authored andcommitted
Unify release tag acquisition
Currently we use a third-party GitHub action to get the latest release version. This version is not identical to the GitHub API latest release tag (it does not include pre-releases). Make all release version calls go through GitHub API.
1 parent fa5f762 commit ab734c7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build-IGC.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
outputs:
2828
CLANG_CACHE_KEY: ${{ env.CLANG_CACHE_KEY }}
2929
steps:
30-
- uses: oprypin/find-latest-tag@v1
31-
with:
32-
repository: intel/intel-graphics-compiler
33-
releases-only: true
30+
- name: get latest IGC release tag
3431
id: get-latest-IGC-release-tag
32+
run: |
33+
TAG=$(gh api repos/intel/intel-graphics-compiler/releases/latest --jq .tag_name)
34+
echo "tag=$TAG" >> $GITHUB_OUTPUT
3535
- name: set initial cache key
3636
run: |
3737
LOC_CLANG_CACHE_KEY="${{ steps.get-latest-IGC-release-tag.outputs.tag }}"
@@ -133,11 +133,11 @@ jobs:
133133
- uses: actions/checkout@v6
134134

135135
#Get OpenCL Clang
136-
- uses: oprypin/find-latest-tag@v1
137-
with:
138-
repository: intel/intel-graphics-compiler
139-
releases-only: true
136+
- name: get latest IGC release tag
140137
id: get-latest-IGC-release-tag
138+
run: |
139+
TAG="$(gh api repos/intel/intel-graphics-compiler/releases/latest --jq .tag_name)"
140+
echo "tag=$TAG" >> $GITHUB_OUTPUT
141141
- name: getting OpenCL Clang from cache from the previous job
142142
id: cache-igc-release
143143
uses: actions/cache@v5

0 commit comments

Comments
 (0)