Commit db75402a authored by Michael Yang's avatar Michael Yang
Browse files

mangle arch

parent 1e85a140
...@@ -153,17 +153,23 @@ jobs: ...@@ -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: ...@@ -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 ./...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment