Skip to content

Commit

Permalink
Wait for servers to start and stop simulation from automatically shut…
Browse files Browse the repository at this point in the history
…ting down
  • Loading branch information
Liamolucko committed May 23, 2024
1 parent 89aabab commit 88a3305
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ jobs:
- uses: actions/checkout@v4
- run: pip install -r fpga/requirements.txt
- run: |
cd fpga
python3 sim.py --cuboids 1x1x5 1x2x3 &
python3 sim.py --cuboids 1x1x5 1x2x3 --non-interactive &
while ! nc -z localhost 1111; do
sleep 1
done
litex_server --uart --uart-port socket://127.0.0.1:1111 &
while ! nc -z localhost 1234; do
sleep 1
done
cargo run -p net-finder-fpga-driver -- --addr localhost:1234 --tcp sim_soc_info.json
kill %2
kill %1
- run: test "$(cat state/1x1x5,1x2x3.json | jq '.solutions | length')" = 2263

0 comments on commit 88a3305

Please # to comment.