Skip to content

Commit 4ec8d79

Browse files
committed
[ci] Add radiance run job
1 parent ba46f47 commit 4ec8d79

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ on:
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
@@ -75,19 +76,23 @@ jobs:
7576
du -sh "${CHIPYARD_DIR}/.conda-env"
7677
du -sh "${CHIPYARD_DIR}/.conda-env/riscv-tools"
7778
78-
- name: Run something
79+
- name: Setup Radiance
80+
# move radiance to under chipyard/generators
81+
run: |
82+
set -eux
83+
rm -rf "${CHIPYARD_DIR}/generators/radiance"
84+
rsync -av --exclude "chipyard" \
85+
"${GITHUB_WORKSPACE}/" "${CHIPYARD_DIR}/generators/radiance/"
86+
87+
- name: Run Radiance
7988
run: |
80-
set -x
8189
cd "${CHIPYARD_DIR}"
82-
cat env.sh
8390
source env.sh
84-
echo "RISCV=$RISCV"
8591
conda env list
86-
which verilator
8792
cd sims/verilator
88-
make CONFIG=RocketConfig run-binary BINARY="$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64uf-p-fadd"
93+
make debug CONFIG=RadianceTapeoutSimConfig
8994
90-
# - name: radiance
91-
# run: |
92-
# source "$CHIPYARD_DIR/env.sh"
93-
# ...
95+
- name: Cleanup workspace
96+
if: always()
97+
run: |
98+
[ -d "${{ github.workspace }}" ] && rm -rf "${{ github.workspace }}/*"

0 commit comments

Comments
 (0)