File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [ ci ]
66 pull_request :
77
8- jobs :
9- chipyard-setup :
10- runs-on : as4
8+ defaults :
9+ run :
10+ # for conda
11+ shell : bash -el {0}
1112
12- defaults :
13- run :
14- # for conda activation
15- shell : bash -el {0}
13+ env :
14+ CHIPYARD_DIR : ${{ github.workspace }}/chipyard
15+ # flip to force-reset cache
16+ CACHE_NUMBER : 0
1617
17- env :
18- CHIPYARD_DIR : ${{ github.workspace }}/chipyard
19- # flip to force-reset cache
20- CACHE_NUMBER : 0
18+ jobs :
19+ setup :
20+ name : setup
21+ runs-on : as4
2122
2223 steps :
2324 - name : Setup system
2425 run : |
26+ set -x
2527 cat /proc/cpuinfo | tail -n20
2628 vmstat -SM
2729 df -h
@@ -75,19 +77,23 @@ jobs:
7577 du -sh "${CHIPYARD_DIR}/.conda-env"
7678 du -sh "${CHIPYARD_DIR}/.conda-env/riscv-tools"
7779
78- - name : Run something
80+ - name : Setup Radiance
81+ # move radiance to under chipyard/generators
82+ run : |
83+ set -eux
84+ rm -rf "${CHIPYARD_DIR}/generators/radiance"
85+ rsync -av --exclude "chipyard" \
86+ "${GITHUB_WORKSPACE}/" "${CHIPYARD_DIR}/generators/radiance/"
87+
88+ - name : Run Radiance
7989 run : |
80- set -x
8190 cd "${CHIPYARD_DIR}"
82- cat env.sh
8391 source env.sh
84- echo "RISCV=$RISCV"
8592 conda env list
86- which verilator
8793 cd sims/verilator
88- make CONFIG=RocketConfig run-binary BINARY="$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64uf-p-fadd"
94+ make debug CONFIG=RadianceTapeoutSimConfig
8995
90- # - name: radiance
91- # run: |
92- # source "$CHIPYARD_DIR/env.sh"
93- # ...
96+ - name : Cleanup workspace
97+ if : always()
98+ run : |
99+ [ -d "${{ github.workspace }}" ] && rm -rf "${{ github.workspace }}/*"
You can’t perform that action at this time.
0 commit comments