@@ -33,20 +33,24 @@ jobs:
33
33
${{ runner.os }}-
34
34
35
35
- name : Download nightly and components
36
- if : steps.cache-sycl-bundle.outputs.cache-hit != 'true'
37
36
shell : bash -l {0}
38
37
run : |
39
38
cd /home/runner/work
40
39
mkdir -p sycl_bundle
41
40
cd sycl_bundle
42
41
export LATEST_LLVM_TAG=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/intel/llvm.git | tail --lines=1)
43
42
export LATEST_LLVM_TAG_SHA=$(echo ${LATEST_LLVM_TAG} | awk '{print $1}')
44
- export NIGHTLY_TAG=$(python3 -c "import sys, urllib.parse as ul; print (ul.quote_plus(sys.argv[1]))" $(echo ${LATEST_LLVM_TAG} | awk '{gsub(/^refs\/tags\//, "", $2)} {print $2}'))
45
- export DOWNLOAD_URL_PREFIX=https://github.com/intel/llvm/releases/download
46
- wget ${DOWNLOAD_URL_PREFIX}/${NIGHTLY_TAG}/dpcpp-compiler.tar.gz && echo ${LATEST_LLVM_TAG_SHA} > bundle_id.txt || rm -rf bundle_d.txt
47
- wget ${DOWNLOAD_URL_PREFIX}/2021-07/${OCLCPUEXP_FN}
48
- wget ${DOWNLOAD_URL_PREFIX}/2021-07/${FPGAEMU_FN}
49
- wget https://github.com/oneapi-src/oneTBB/releases/download/v2021.4.0/${TBB_FN}
43
+ export NIGHTLY_TAG=$(python3 -c "import sys, urllib.parse as ul; print (ul.quote_plus(sys.argv[1]))" \
44
+ $(echo ${LATEST_LLVM_TAG} | awk '{gsub(/^refs\/tags\//, "", $2)} {print $2}'))
45
+ if [[ -f bundle_id.txt && ( "$(cat bundle_id.txt)" == "${LATEST_LLVM_TAG_SHA}" ) ]]; then
46
+ export DOWNLOAD_URL_PREFIX=https://github.com/intel/llvm/releases/download
47
+ wget ${DOWNLOAD_URL_PREFIX}/${NIGHTLY_TAG}/dpcpp-compiler.tar.gz && echo ${LATEST_LLVM_TAG_SHA} > bundle_id.txt || rm -rf bundle_id.txt
48
+ wget ${DOWNLOAD_URL_PREFIX}/2021-07/${OCLCPUEXP_FN} || rm -rf bundle_id.txt
49
+ wget ${DOWNLOAD_URL_PREFIX}/2021-07/${FPGAEMU_FN} || rm -rf bundle_id.txt
50
+ wget https://github.com/oneapi-src/oneTBB/releases/download/v2021.4.0/${TBB_FN} || rm -rf bundle_id.txt
51
+ else
52
+ echo "Using cached download of ${LATEST_LLVM_TAG}"
53
+ fi
50
54
51
55
- name : Install system components
52
56
shell : bash -l {0}
0 commit comments