mangle arch
This commit is contained in:
parent
1e85a140a3
commit
db75402ade
1 changed files with 24 additions and 12 deletions
36
.github/workflows/test.yaml
vendored
36
.github/workflows/test.yaml
vendored
|
@ -153,17 +153,23 @@ jobs:
|
||||||
go-version: '1.22'
|
go-version: '1.22'
|
||||||
cache: false
|
cache: false
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
|
case ${{ matrix.arch }} in
|
||||||
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
|
amd64) echo ARCH=x86_64 ;;
|
||||||
|
arm64) echo ARCH=arm64 ;;
|
||||||
|
esac >>$GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
- run: |
|
||||||
|
mkdir -p llm/llama.cpp/build/linux/$ARCH/stub/lib/
|
||||||
|
touch llm/llama.cpp/build/linux/$ARCH/stub/lib/stub.so
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/
|
mkdir -p llm/llama.cpp/build/darwin/$ARCH/stub/lib/
|
||||||
touch llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/stub.dylib
|
touch llm/llama.cpp/build/darwin/$ARCH/stub/lib/stub.dylib
|
||||||
touch llm/llama.cpp/ggml-metal.metal
|
touch llm/llama.cpp/ggml-metal.metal
|
||||||
if: ${{ startsWith(matrix.os, 'macos-') }}
|
if: ${{ startsWith(matrix.os, 'macos-') }}
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/
|
mkdir -p llm/llama.cpp/build/windows/$ARCH/stub/lib/
|
||||||
touch llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/stub.dll
|
touch llm/llama.cpp/build/windows/$ARCH/stub/lib/stub.dll
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
- uses: golangci/golangci-lint-action@v3
|
- uses: golangci/golangci-lint-action@v3
|
||||||
test:
|
test:
|
||||||
|
@ -190,17 +196,23 @@ jobs:
|
||||||
cache: true
|
cache: true
|
||||||
- run: go get
|
- run: go get
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
|
case ${{ matrix.arch }} in
|
||||||
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
|
amd64) echo ARCH=x86_64 ;;
|
||||||
|
arm64) echo ARCH=arm64 ;;
|
||||||
|
esac >>$GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
- run: |
|
||||||
|
mkdir -p llm/llama.cpp/build/linux/$ARCH/stub/lib/
|
||||||
|
touch llm/llama.cpp/build/linux/$ARCH/stub/lib/stub.so
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/
|
mkdir -p llm/llama.cpp/build/darwin/$ARCH/stub/lib/
|
||||||
touch llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/stub.dylib
|
touch llm/llama.cpp/build/darwin/$ARCH/stub/lib/stub.dylib
|
||||||
touch llm/llama.cpp/ggml-metal.metal
|
touch llm/llama.cpp/ggml-metal.metal
|
||||||
if: ${{ startsWith(matrix.os, 'macos-') }}
|
if: ${{ startsWith(matrix.os, 'macos-') }}
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/
|
mkdir -p llm/llama.cpp/build/windows/$ARCH/stub/lib/
|
||||||
touch llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/stub.dll
|
touch llm/llama.cpp/build/windows/$ARCH/stub/lib/stub.dll
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
- run: go build
|
- run: go build
|
||||||
- run: go test -v ./...
|
- run: go test -v ./...
|
||||||
|
|
Loading…
Reference in a new issue