From 494cf221b34f71a26a32f44b92241192602cd6b9 Mon Sep 17 00:00:00 2001 From: Blaok Date: Sun, 18 Feb 2024 09:56:20 -0800 Subject: [PATCH] ci(xosim): actually run xosim --- .github/workflows/CI.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6cad85d..96c6f85 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,16 +41,21 @@ jobs: run: git clone https://github.com/UCLA-VAST/tapa - name: Install TAPA run: tapa/install.sh - - name: Test myself + - name: Patch TAPA to run xosim working-directory: tapa/apps run: | for app in *; do - if [ -d "${app}" ]; then - pushd "${app}" - cmake -S. -Bbuild - cmake --build build --target "${app}" "${app}-hw-xo" --parallel 2 - make "${app}"-cosim -n | \ - sed -n 's/--bitstream\(.*\)_emu\.xclbin/--bitstream\1.xo/p' - popd + if [[ -e "${app}/CMakeLists.txt" ]]; then + sed -i 's/${hw_emu_xclbin}/'"${app}-hw-xo/g" \ + "${app}/CMakeLists.txt" fi done + - name: Test myself + working-directory: tapa/apps + run: | + source ${XILINX_VITIS}/settings64.sh + { + printf 'all:\n' + find apps -mindepth 1 -maxdepth 1 -type d \ + -printf '\t+$(MAKE) -C apps/%f/build %f-cosim\n' + } | make -f -