Skip to content

Commit 631d080

Browse files
committed
ci: add submodule check and remove the dependency of utility in OpenLLC
1 parent fffb491 commit 631d080

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ on:
1515

1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
18+
check-submodules:
19+
runs-on: ubuntu-22.04
20+
needs: changes
21+
if: ${{ needs.changes.outputs.core == 'true' }}
22+
continue-on-error: false
23+
timeout-minutes: 5
24+
name: Check Submodules
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
submodules: 'true'
29+
fetch-depth: '0'
30+
- name: check rocket-chip
31+
run: cd rocket-chip && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
32+
- name: check HuanCun
33+
run: cd HuanCun && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
34+
- name: check utility
35+
run: cd utility && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
36+
1837
# This workflow contains a single job called "build"
1938
tl-test_L2:
2039
# The type of runner that the job will run on
@@ -78,6 +97,7 @@ jobs:
7897
git clone https://github.com/OpenXiangShan/OpenLLC
7998
cd OpenLLC && make init
8099
rm -rf ./coupledL2 && ln -s ../../.. ./coupledL2
100+
rm -rf ./utility && ln -s ../../../utility ./utility
81101
cd ../..
82102
make openLLC-test-l2l3l2 run THREADS_BUILD=4 CXX_COMPILER=clang++-17
83103
rm -rf run/*.vcd run/*.fst run/*.log run/*.db

0 commit comments

Comments
 (0)