Skip to content

add github action.

add github action. #4

Workflow file for this run

name: chatglm-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/chatglm_linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/chatglm_linux.yml'
concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
linux_buil_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: download
run: ./script/download_model.sh chatglm-6b
- name: build
run: ./script/linux_build.sh
- name: test
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:libs
cd ./build/cli_demo -m chatglm-6b