Skip to content

Commit

Permalink
ci(xosim): actually run xosim
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaok committed Feb 18, 2024
1 parent 4ccd3f4 commit 494cf22
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -

0 comments on commit 494cf22

Please sign in to comment.