Skip to content

(#1) support chatglm.cpp v0.3.0 #69

(#1) support chatglm.cpp v0.3.0

(#1) support chatglm.cpp v0.3.0 #69

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: ["main"]
tags:
- '*'
jobs:
ubuntu-latest:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['stable']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Display GCC version
run: gcc --version
- name: Display CMake version
run: cmake --version
- name: Install dependencies
run: go mod tidy
- name: Test
run: |
make test
macOS-latest:
runs-on: macOS-latest
strategy:
matrix:
go-version: ['stable']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Display GCC version
run: gcc --version
- name: Display CMake version
run: cmake --version
- name: Install dependencies
run: go mod tidy
- name: Test
run: |
make test
macOS-metal-latest:
runs-on: macOS-latest
strategy:
matrix:
go-version: ['stable']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Display GCC version
run: gcc --version
- name: Display CMake version
run: cmake --version
- name: Install dependencies
run: go mod tidy
- name: Test
run: |
CMAKE_ARGS="-DCMAKE_C_FLAGS=-march=native -CMAKE_CXX_FLAGS=-march=native" make BUILD_TYPE=metal test