32
32
${{ runner.os }}-build-
33
33
${{ runner.os }}-
34
34
35
- - name : Download nightly and components
35
+ - name : Download and install nightly and components
36
36
shell : bash -l {0}
37
37
run : |
38
38
cd /home/runner/work
@@ -43,13 +43,24 @@ jobs:
43
43
export NIGHTLY_TAG=$(python3 -c "import sys, urllib.parse as ul; print (ul.quote_plus(sys.argv[1]))" \
44
44
$(echo ${LATEST_LLVM_TAG} | awk '{gsub(/^refs\/tags\//, "", $2)} {print $2}'))
45
45
if [[ -f bundle_id.txt && ( "$(cat bundle_id.txt)" == "${LATEST_LLVM_TAG_SHA}" ) ]]; then
46
+ echo "Using cached download of ${LATEST_LLVM_TAG}"
47
+ else
46
48
export DOWNLOAD_URL_PREFIX=https://github.com/intel/llvm/releases/download
49
+ rm -rf dpcpp-compiler.tar.gz
47
50
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}"
51
+ [ -f ${OCLCPUEXP_FN} ] || wget ${DOWNLOAD_URL_PREFIX}/2021-07/${OCLCPUEXP_FN} || rm -rf bundle_id.txt
52
+ [ -f ${FPGAEMU_FN} ] || wget ${DOWNLOAD_URL_PREFIX}/2021-07/${FPGAEMU_FN} || rm -rf bundle_id.txt
53
+ [ -f ${TBB_FN} ] || wget https://github.com/oneapi-src/oneTBB/releases/download/v2021.4.0/${TBB_FN} || rm -rf bundle_id.txt
54
+ rm -rf dpcpp_compiler
55
+ tar xf dpcpp-compiler.tar.gz
56
+ mkdir -p oclcpuexp
57
+ mkdir -p fpgaemu
58
+ [ -d oclcpuexp/x64 ] || tar xf ${OCLCPUEXP_FN} -C oclcpuexp
59
+ [ -d fpgaemu/x64 ] || tar xf ${FPGAEMU_FN} -C fpgaemu
60
+ [ -d oneapi-tbb-2021.4.0/lib ] || tar xf ${TBB_FN}
61
+ mkdir -p dpcpp_compiler/lib
62
+ mkdir -p dpcpp_compiler/lib/oclfpga
63
+ touch dpcpp_compiler/lib/oclfpga/fpgavars.sh
53
64
fi
54
65
55
66
- name : Install system components
68
79
run : |
69
80
pip install numpy cython setuptools pytest
70
81
71
- - name : install nightly
72
- shell : bash -l {0}
73
- run : |
74
- cd /home/runner/work/sycl_bundle
75
- tar xf dpcpp-compiler.tar.gz
76
- mkdir -p oclcpuexp
77
- mkdir -p fpgaemu
78
- mkdir -p tbb
79
- tar xf ${OCLCPUEXP_FN} -C oclcpuexp
80
- tar xf ${FPGAEMU_FN} -C fpgaemu
81
- tar xf ${TBB_FN}
82
- mkdir -p dpcpp_compiler/lib
83
- mkdir -p dpcpp_compiler/lib/oclfpga
84
- touch dpcpp_compiler/lib/oclfpga/fpgavars.sh
85
-
86
82
- name : Checkout repo
87
83
uses : actions/checkout@v2
88
84
with :
0 commit comments