@@ -1452,10 +1452,10 @@ jobs:
14521452 quayUsername : ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
14531453 quayPassword : ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
14541454 llama-cpp-darwin :
1455- runs-on : macOS-14
1455+ runs-on : macos-latest
14561456 strategy :
14571457 matrix :
1458- go-version : ['1.21 .x']
1458+ go-version : ['1.25 .x']
14591459 steps :
14601460 - name : Clone
14611461 uses : actions/checkout@v6
@@ -1537,91 +1537,3 @@ jobs:
15371537 for tag in $(echo "${{ steps.quaymeta.outputs.tags }}" | tr ',' '\n'); do
15381538 crane push llama-cpp.tar $tag
15391539 done
1540- llama-cpp-darwin-x86 :
1541- runs-on : macos-13
1542- strategy :
1543- matrix :
1544- go-version : ['1.21.x']
1545- steps :
1546- - name : Clone
1547- uses : actions/checkout@v6
1548- with :
1549- submodules : true
1550- - name : Setup Go ${{ matrix.go-version }}
1551- uses : actions/setup-go@v5
1552- with :
1553- go-version : ${{ matrix.go-version }}
1554- cache : false
1555- # You can test your matrix by printing the current Go version
1556- - name : Display Go version
1557- run : go version
1558- - name : Dependencies
1559- run : |
1560- brew install protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm
1561- - name : Build llama-cpp-darwin
1562- run : |
1563- make protogen-go
1564- make build
1565- export PLATFORMARCH=darwin/amd64
1566- make backends/llama-cpp-darwin
1567- - name : Upload llama-cpp.tar
1568- uses : actions/upload-artifact@v6
1569- with :
1570- name : llama-cpp-tar-x86
1571- path : backend-images/llama-cpp.tar
1572- llama-cpp-darwin-x86-publish :
1573- if : github.event_name != 'pull_request'
1574- needs : llama-cpp-darwin-x86
1575- runs-on : ubuntu-latest
1576- steps :
1577- - name : Download llama-cpp.tar
1578- uses : actions/download-artifact@v7
1579- with :
1580- name : llama-cpp-tar-x86
1581- path : .
1582- - name : Install crane
1583- run : |
1584- curl -L https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_Linux_x86_64.tar.gz | tar -xz
1585- sudo mv crane /usr/local/bin/
1586- - name : Log in to DockerHub
1587- run : |
1588- echo "${{ secrets.DOCKERHUB_PASSWORD }}" | crane auth login docker.io -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
1589- - name : Log in to quay.io
1590- run : |
1591- echo "${{ secrets.LOCALAI_REGISTRY_PASSWORD }}" | crane auth login quay.io -u "${{ secrets.LOCALAI_REGISTRY_USERNAME }}" --password-stdin
1592- - name : Docker meta
1593- id : meta
1594- uses : docker/metadata-action@v5
1595- with :
1596- images : |
1597- localai/localai-backends
1598- tags : |
1599- type=ref,event=branch
1600- type=semver,pattern={{raw}}
1601- type=sha
1602- flavor : |
1603- latest=auto
1604- suffix=-darwin-x86-llama-cpp,onlatest=true
1605- - name : Docker meta
1606- id : quaymeta
1607- uses : docker/metadata-action@v5
1608- with :
1609- images : |
1610- quay.io/go-skynet/local-ai-backends
1611- tags : |
1612- type=ref,event=branch
1613- type=semver,pattern={{raw}}
1614- type=sha
1615- flavor : |
1616- latest=auto
1617- suffix=-darwin-x86-llama-cpp,onlatest=true
1618- - name : Push Docker image (DockerHub)
1619- run : |
1620- for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n'); do
1621- crane push llama-cpp.tar $tag
1622- done
1623- - name : Push Docker image (Quay)
1624- run : |
1625- for tag in $(echo "${{ steps.quaymeta.outputs.tags }}" | tr ',' '\n'); do
1626- crane push llama-cpp.tar $tag
1627- done
0 commit comments