Skip to content

Commit c5ad8f4

Browse files
authored
ci: add submodule check and remove the dependency of utility in OpenLLC (OpenXiangShan#454)
1 parent feacfb5 commit c5ad8f4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ 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+
continue-on-error: false
21+
timeout-minutes: 5
22+
name: Check Submodules
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
submodules: 'true'
27+
fetch-depth: '0'
28+
- name: check rocket-chip
29+
run: cd rocket-chip && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
30+
- name: check HuanCun
31+
run: cd HuanCun && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
32+
- name: check utility
33+
run: cd utility && git fetch --all && git merge-base --is-ancestor `git rev-parse HEAD` origin/master
34+
1835
# This workflow contains a single job called "build"
1936
tl-test_L2:
2037
# The type of runner that the job will run on
@@ -78,6 +95,7 @@ jobs:
7895
git clone https://github.com/OpenXiangShan/OpenLLC
7996
cd OpenLLC && make init
8097
rm -rf ./coupledL2 && ln -s ../../.. ./coupledL2
98+
rm -rf ./utility && ln -s ../../../utility ./utility
8199
cd ../..
82100
make openLLC-test-l2l3l2 run THREADS_BUILD=4 CXX_COMPILER=clang++-17
83101
rm -rf run/*.vcd run/*.fst run/*.log run/*.db

0 commit comments

Comments
 (0)