mangle arch

This commit is contained in:
Michael Yang 2024-03-27 12:57:06 -07:00
parent 1e85a140a3
commit db75402ade

View file

@ -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 ./...