-
Notifications
You must be signed in to change notification settings - Fork 163
53 lines (49 loc) · 1.15 KB
/
linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/linux.yml'
jobs:
build:
name: linux-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# build
- name: build-pack
run: |
./script/build.sh
./script/package.sh package
zip -r package.zip package
# upload
- name: upload-zip
uses: actions/upload-artifact@v3
with:
path: ./*.zip
test:
needs: build
name: ${{ matrix.model }}-linux-test
runs-on: ubuntu-latest
strategy:
matrix:
model: [qwen-1.8b, chatglm-6b, chatglm2-6b, chatglm3-6b, codegeex2-6b, qwen-7b-chat, baichuan2-7b-chat, llama2-7b-chat]
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: workspace
- name: model-test
run: |
cd workspace
unzip package.zip
cd package
./script/model_test.sh ${{ matrix.model }}