Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ jobs:
shell: bash
run: |
echo LLVM_HASH=$(cat graph-compiler/cmake/llvm-version.txt) >> $GITHUB_ENV
echo RUN_ID=$(gh run list -w "LLVM Build" --repo intel/graph-compiler --json databaseId --jq '.[0].databaseId') >> $GITHUB_ENV

- name: Fetch llvm artifact
uses: actions/download-artifact@v4
with:
name: "llvm-${{ env.LLVM_HASH }}"
path: llvm
github-token: ${{ github.token }}
run-id: ${{ env.RUN_ID }}

run: |
gh run download \
--repo ${{ github.repository }} \
-n "llvm-${{ env.LLVM_HASH }}" \
--dir llvm
tar -zxf llvm/llvm.tgz
- name: Unwrap pre-built llvm
run: |
cd llvm
Expand Down
4 changes: 1 addition & 3 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ else
fi

load_llvm() {
local run_id

if [ "$ENABLE_IMEX" = "true" ]; then
local llvm_version="llvm-${LLVM_HASH}-imex-patched"
else
local llvm_version="llvm-${LLVM_HASH}"
fi

gh run download "$run_id" \
gh run download \
--repo "$REPO" \
-n "$llvm_version" \
--dir "$llvm_dir"
Expand Down