Skip to content

Commit 4fffa1a

Browse files
committed
Update ci.yml
1 parent f1c7434 commit 4fffa1a

File tree

1 file changed

+59
-4
lines changed

1 file changed

+59
-4
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on: [push, pull_request]
1717

1818
jobs:
1919
setup:
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-20.04
2121

2222
steps:
2323
- name: Checkout code
@@ -63,7 +63,7 @@ jobs:
6363
make -C third_party > /dev/null
6464
6565
build:
66-
runs-on: ubuntu-22.04
66+
runs-on: ubuntu-20.04
6767
needs: setup
6868
strategy:
6969
matrix:
@@ -112,7 +112,7 @@ jobs:
112112
path: build${{ matrix.xlen }}
113113

114114
tests:
115-
runs-on: ubuntu-22.04
115+
runs-on: ubuntu-20.04
116116
needs: build
117117
strategy:
118118
fail-fast: false
@@ -166,8 +166,63 @@ jobs:
166166
./ci/regression.sh --${{ matrix.name }}
167167
fi
168168
169-
complete:
169+
vector-tests:
170170
runs-on: ubuntu-22.04
171+
needs: build
172+
strategy:
173+
fail-fast: false
174+
matrix:
175+
name: [vector]
176+
xlen: [32, 64]
177+
178+
steps:
179+
- name: Checkout code
180+
uses: actions/checkout@v2
181+
182+
- name: Install Dependencies
183+
run: |
184+
sudo bash ./ci/install_dependencies.sh
185+
186+
- name: Cache Toolchain Directory
187+
id: cache-toolchain
188+
uses: actions/cache@v4
189+
with:
190+
path: tools
191+
key: ${{ runner.os }}-toolchain-v0.1
192+
restore-keys: |
193+
${{ runner.os }}-toolchain-
194+
195+
- name: Cache Third Party Directory
196+
id: cache-thirdparty
197+
uses: actions/cache@v4
198+
with:
199+
path: third_party
200+
key: ${{ runner.os }}-thirdparty-v0.1
201+
restore-keys: |
202+
${{ runner.os }}-thirdparty-
203+
204+
- name: Download Build Artifact
205+
uses: actions/download-artifact@v4
206+
with:
207+
name: build-${{ matrix.xlen }}
208+
path: build${{ matrix.xlen }}
209+
210+
- name: Run tests
211+
run: |
212+
cd build${{ matrix.xlen }}
213+
source ci/toolchain_env.sh
214+
chmod -R +x . # Ensure all files have executable permissions
215+
if [ "${{ matrix.name }}" == "regression" ]; then
216+
./ci/regression.sh --unittest
217+
./ci/regression.sh --isa
218+
./ci/regression.sh --kernel
219+
./ci/regression.sh --regression
220+
else
221+
./ci/regression.sh --${{ matrix.name }}
222+
fi
223+
224+
complete:
225+
runs-on: ubuntu-20.04
171226
needs: tests
172227

173228
steps:

0 commit comments

Comments
 (0)