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
2830 [ -d "${{ github.workspace }}" ] && rm -rf "${{ github.workspace }}/*"
31+ mkdir -p "/nscratch/$USER/work"
2932
3033 - name : Checkout
3134 uses : actions/checkout@v4
@@ -75,19 +78,23 @@ jobs:
7578 du -sh "${CHIPYARD_DIR}/.conda-env"
7679 du -sh "${CHIPYARD_DIR}/.conda-env/riscv-tools"
7780
78- - name : Run something
81+ - name : Setup Radiance
82+ # move radiance to under chipyard/generators
83+ run : |
84+ set -eux
85+ rm -rf "${CHIPYARD_DIR}/generators/radiance"
86+ rsync -av --exclude "chipyard" \
87+ "${GITHUB_WORKSPACE}/" "${CHIPYARD_DIR}/generators/radiance/"
88+
89+ - name : Run Radiance
7990 run : |
80- set -x
8191 cd "${CHIPYARD_DIR}"
82- cat env.sh
8392 source env.sh
84- echo "RISCV=$RISCV"
8593 conda env list
86- which verilator
8794 cd sims/verilator
88- make CONFIG=RocketConfig run-binary BINARY="$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64uf-p-fadd"
95+ make debug CONFIG=RadianceTapeoutSimConfig
8996
90- # - name: radiance
91- # run: |
92- # source "$CHIPYARD_DIR/env.sh"
93- # ...
97+ - name : Cleanup workspace
98+ if : always()
99+ run : |
100+ [ -d "${{ github.workspace }}" ] && rm -rf "${{ github.workspace }}/*"
You can’t perform that action at this time.
0 commit comments