From 09455077062bb8e6c21b7b2958608795485faf5e Mon Sep 17 00:00:00 2001 From: Haojin Tang Date: Tue, 26 Nov 2024 16:02:59 +0800 Subject: [PATCH] ci: `make init` for submods instead of recursively checkout --- .github/workflows/emu.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/emu.yml b/.github/workflows/emu.yml index 8d333523ff..512afe0603 100644 --- a/.github/workflows/emu.yml +++ b/.github/workflows/emu.yml @@ -32,9 +32,7 @@ jobs: timeout-minutes: 900 name: Generate Verilog steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -42,6 +40,8 @@ jobs: echo "NEMU_HOME=/nfs/home/share/ci-workloads/NEMU" >> $GITHUB_ENV echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean @@ -90,9 +90,7 @@ jobs: timeout-minutes: 900 name: EMU - Basics steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -104,6 +102,8 @@ jobs: echo "GCPT_RESTORE_BIN=/nfs/home/share/ci-workloads/fix-gcpt/gcpt.bin" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean @@ -160,9 +160,7 @@ jobs: timeout-minutes: 900 name: EMU - CHI steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -170,6 +168,8 @@ jobs: echo "NEMU_HOME=/nfs/home/share/ci-workloads/NEMU" >> $GITHUB_ENV echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean @@ -189,9 +189,7 @@ jobs: timeout-minutes: 900 name: EMU - Performance steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -203,6 +201,8 @@ jobs: echo "GCPT_RESTORE_BIN=/nfs/home/share/ci-workloads/fix-gcpt/gcpt.bin" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean @@ -256,9 +256,7 @@ jobs: timeout-minutes: 900 name: EMU - MC steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -269,6 +267,8 @@ jobs: echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean @@ -293,9 +293,7 @@ jobs: timeout-minutes: 900 name: SIMV - Basics steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' + - uses: actions/checkout@v4 - name: set env run: | export HEAD_SHA=${{ github.run_number }} @@ -306,6 +304,8 @@ jobs: echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: init + run: make init - name: clean up run: | python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean