forked from Blaok/fpga-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.72 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
- push
jobs:
CI:
runs-on:
- self-hosted
- Linux
- xilinx-tools
strategy:
matrix:
xocl-platform:
- xilinx_u250_gen3x16_xdma_4_1_202210_1
- xilinx_u280_gen3x16_xdma_1_202211_1
xocl-version:
- 2023.2
env:
# Cannot source Xilinx scripts because they mess up many system libraries.
XILINX_HLS: /opt/tools/xilinx/Vitis_HLS/${{ matrix.xocl-version }}
XILINX_VITIS: /opt/tools/xilinx/Vitis/${{ matrix.xocl-version }}
XILINX_VIVADO: /opt/tools/xilinx/Vivado/${{ matrix.xocl-version }}
steps:
- name: Checkout myself
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake \
libgflags-dev \
libgoogle-glog-dev \
libgtest-dev \
libtinyxml-dev \
opencl-headers \
python3-pip \
python3 -m pip install --user \
git+https://github.com/UCLA-VAST/tapa-fast-cosim.git@93646a999b786e94626982700dfaf708fe3deec0
- name: Configure myself
run: cmake -S. -Bbuild -DXRT_PLATFORM=${{ matrix.xocl-platform }}
- name: Build myself
run: cmake --build build --target all
- name: Test myself
working-directory: build
run: |
# Some Vitis versions have a bug where xclbinutil is not found without
# manually sourcing the XRT setup script.
source "${XILINX_XRT}"/setup.sh
source "${XILINX_VITIS}"/settings64.sh
# TODO: re-enable csim once fixed
/usr/bin/ctest --verbose --stop-on-failure --exclude-regex '^xdma-csim$'