Skip to content

Commit

Permalink
workflows: upload artifact after failed run
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumonda221-CrO3 committed Aug 4, 2024
1 parent bc92102 commit f697c98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

# Environments
env:
RUN_ARCHIVE: coupledL2-tilelink-run-${{ github.sha }}.tar.gz
RUN_ARCHIVE: coupledL2-tl-test-new-run-${{ github.sha }}.tar.gz

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -65,14 +65,17 @@ jobs:
- name: Compile
run: make compile

# Clean artifacts folder (./tl-test-new/run) after successful run
- name: Unit Test for TileLink version
run: |
git clone https://github.com/OpenXiangShan/tl-test-new
cd ./tl-test-new
sed -i 's/ari.target.*/ari.target = 240/g' ./configs/user.tltest.ini
rm -rf ./dut/CoupledL2 && ln -s ../.. ./dut/CoupledL2
make coupledL2-test-l2l3l2 run THREADS_BUILD=4 CXX_COMPILER=clang++-17
rm -rf run
# Clean artifacts folder (./tl-test-new/run) after successful run
- name: Unit test for CHI version
run: |
cd tl-test-new/dut
Expand All @@ -82,6 +85,7 @@ jobs:
cd ..
rm -rf ./CoupledL2 && ln -s ./OpenLLC ./CoupledL2 && cd ..
make coupledL2-test-l2l3l2 run THREADS_BUILD=4 CXX_COMPILER=clang++-17
rm -rf run
- name: Tar up artifacts of Unit Test for TileLink version
run: |
Expand Down

0 comments on commit f697c98

Please sign in to comment.