Skip to content

Commit efbe2bc

Browse files
committed
ci: Always cleanup
1 parent 6c220f7 commit efbe2bc

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/scripts/setup-chipyard.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cd "${CHIPYARD_DIR}"
1212
if [[ "${CACHE_HIT}" == "true" ]]; then
1313
echo "[CI] Cache hit! Skipping conda and toolchain steps"
1414
export RISCV="${CHIPYARD_DIR}/.conda-env/riscv-tools"
15+
[ -d "${RISCV}" ] || ( echo "error: ${RISCV} does not exist!" && exit 1 )
1516
source $(conda info --base)/etc/profile.d/conda.sh
1617
conda activate "${CHIPYARD_DIR}/.conda-env"
1718
./build-setup.sh riscv-tools --skip-conda --skip-toolchain --skip-precompile --skip-firesim --skip-marshal

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
make debug CONFIG=RadianceTapeoutSimConfig
9898
9999
run:
100+
name: run
100101
runs-on: as4
101102
needs: build
102103
steps:
@@ -108,8 +109,12 @@ jobs:
108109
cd generators/radiance
109110
python3 test/run_isa_tests.py -j "$(nproc)"
110111
111-
- name: Cleanup workspace
112-
if: always()
112+
clean:
113+
runs-on: as4
114+
needs: run
115+
if: always()
116+
steps:
117+
- name: Cleanup workspace and chipyard
113118
run: |
114119
[ -d "${{ github.workspace }}" ] && rm -rf "${{ github.workspace }}"
115120
[ -d "${CHIPYARD_DIR}" ] && rm -rf "${CHIPYARD_DIR}"

0 commit comments

Comments
 (0)