forked from Xilinx/fpga24_routing_contest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to execute report_route_status on remote server (#16)
* Add ability to execute report_route_status on remote server Signed-off-by: Eddie Hung <[email protected]> * No compression for zip Signed-off-by: Eddie Hung <[email protected]> * Add comment Signed-off-by: Eddie Hung <[email protected]> * Check for empty string Signed-off-by: Eddie Hung <[email protected]> --------- Signed-off-by: Eddie Hung <[email protected]>
- Loading branch information
1 parent
9000bdb
commit a72a150
Showing
3 changed files
with
107 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,10 @@ export TIME=Wall-clock time (sec): %e | |
|
||
# Existence of the VERBOSE environment variable indicates whether router/ | ||
# checker outputs will be displayed on screen | ||
ifdef VERBOSE | ||
VERBOSE ?= 0 | ||
ifneq ($(VERBOSE), 0) | ||
log_and_or_display = 2>&1 | tee $(1) | ||
SHELL := /bin/bash -o pipefail | ||
else | ||
log_and_or_display = > $(1) 2>&1 | ||
endif | ||
|
@@ -70,12 +72,11 @@ fpga-interchange-schema/interchange/capnp/java.capnp: | |
# Gradle is used to invoke the CheckPhysNetlist class' main method with arguments | ||
# $^ (%.netlist and %_rwroute.phys), and display/redirect all output to [email protected] (%_rwroute.check.log). | ||
# The exit code of Gradle determines if 'PASS' or 'FAIL' is written to $@ (%_rwroute.check) | ||
# When inside GitHub Actions (which has no access to Vivado), and also when the routed netlist | ||
# was successfully converted back into a DCP, then return a mock PASS result | ||
%_$(ROUTER).check: %.netlist %_$(ROUTER).phys | compile-java | ||
if ./gradlew -DjvmArgs="-Xms6g -Xmx6g" -Dmain=com.xilinx.fpga24_routing_contest.CheckPhysNetlist :run --args='$^' $(call log_and_or_display,$@.log); then \ | ||
echo "PASS" > $@; \ | ||
elif [[ ! -z "$(GITHUB_ACTION)" && -f "$(patsubst %.check,%.dcp,$@)" ]]; then \ | ||
elif [[ "$(CHECK_PHYS_NETLIST_MOCK_PASS)" == "true" && -f "$(patsubst %.check,%.dcp,$@)" ]]; then \ | ||
echo "::warning file=$@::CheckPhysNetlist returned FAIL but CHECK_PHYS_NETLIST_MOCK_PASS is set"; \ | ||
echo "PASS" > $@; \ | ||
else \ | ||
echo "FAIL" > $@; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters