build: set goflags in linux release
This commit is contained in:
parent
bea1f1fac6
commit
3f0cb36bdb
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -291,7 +291,7 @@ jobs:
|
|||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
- run: |
|
- run: |
|
||||||
apt-get update && apt-get install pigz
|
apt-get update && apt-get install pigz
|
||||||
for TARGET in ${{ matrix.targets }}; do docker buildx build --platform $PLATFORM --target $TARGET --output type=local,dest=dist/$PLATFORM .; done
|
for TARGET in ${{ matrix.targets }}; do docker buildx build --platform $PLATFORM --target $TARGET --build-arg GOFLAGS --output type=local,dest=dist/$PLATFORM .; done
|
||||||
tar c -C dist/$PLATFORM . | pigz -9cv >dist/ollama-${PLATFORM//\//-}.tgz
|
tar c -C dist/$PLATFORM . | pigz -9cv >dist/ollama-${PLATFORM//\//-}.tgz
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ matrix.os }}/${{ matrix.arch }}
|
PLATFORM: ${{ matrix.os }}/${{ matrix.arch }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user