Skip to content

Commit 61afe4c

Browse files
authored
chore: drop drawin-x86_64 support (#7616)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 424c95e commit 61afe4c

6 files changed

Lines changed: 8 additions & 107 deletions

File tree

.github/workflows/backend.yml

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
limit-access-to-actor: true
191191

192192
tests-apple:
193-
runs-on: macOS-14
193+
runs-on: macos-latest
194194
strategy:
195195
matrix:
196196
go-version: ['1.25.x']

.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ builds:
2222
goarch:
2323
- amd64
2424
- arm64
25+
ignore:
26+
- goos: darwin
27+
goarch: amd64
2528
archives:
2629
- formats: [ 'binary' ] # this removes the tar of the archives, leaving the binaries alone
2730
name_template: local-ai-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}

backend/index.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
metal: "metal-llama-cpp"
2626
vulkan: "vulkan-llama-cpp"
2727
nvidia-l4t: "nvidia-l4t-arm64-llama-cpp"
28-
darwin-x86: "darwin-x86-llama-cpp"
2928
nvidia-cuda-13: "cuda13-llama-cpp"
3029
nvidia-cuda-12: "cuda12-llama-cpp"
3130
nvidia-l4t-cuda-12: "nvidia-l4t-arm64-llama-cpp"
@@ -85,7 +84,6 @@
8584
nvidia-cuda-12: "cuda12-stablediffusion-ggml"
8685
nvidia-l4t-cuda-12: "nvidia-l4t-arm64-stablediffusion-ggml"
8786
nvidia-l4t-cuda-13: "cuda13-nvidia-l4t-arm64-stablediffusion-ggml"
88-
# darwin-x86: "darwin-x86-stablediffusion-ggml"
8987
- &rfdetr
9088
name: "rfdetr"
9189
alias: "rfdetr"
@@ -606,16 +604,6 @@
606604
mirrors:
607605
- localai/localai-backends:master-piper
608606
## llama-cpp
609-
- !!merge <<: *llamacpp
610-
name: "darwin-x86-llama-cpp"
611-
uri: "quay.io/go-skynet/local-ai-backends:latest-darwin-x86-llama-cpp"
612-
mirrors:
613-
- localai/localai-backends:latest-darwin-x86-llama-cpp
614-
- !!merge <<: *llamacpp
615-
name: "darwin-x86-llama-cpp-development"
616-
uri: "quay.io/go-skynet/local-ai-backends:master-darwin-x86-llama-cpp"
617-
mirrors:
618-
- localai/localai-backends:master-darwin-x86-llama-cpp
619607
- !!merge <<: *llamacpp
620608
name: "nvidia-l4t-arm64-llama-cpp"
621609
uri: "quay.io/go-skynet/local-ai-backends:latest-nvidia-l4t-arm64-llama-cpp"

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/Masterminds/sprig/v3 v3.3.0
1111
github.com/alecthomas/kong v1.13.0
1212
github.com/charmbracelet/glamour v0.10.0
13+
github.com/cloudfoundry/gosigar v1.3.112
1314
github.com/containerd/containerd v1.7.29
1415
github.com/ebitengine/purego v0.9.1
1516
github.com/fsnotify/fsnotify v1.9.0
@@ -56,18 +57,17 @@ require (
5657
go.opentelemetry.io/otel/metric v1.39.0
5758
go.opentelemetry.io/otel/sdk/metric v1.39.0
5859
google.golang.org/grpc v1.77.0
60+
google.golang.org/protobuf v1.36.10
5961
gopkg.in/yaml.v2 v2.4.0
6062
gopkg.in/yaml.v3 v3.0.1
6163
oras.land/oras-go/v2 v2.6.0
6264
)
6365

6466
require (
65-
github.com/cloudfoundry/gosigar v1.3.112 // indirect
6667
github.com/ghodss/yaml v1.0.0 // indirect
6768
github.com/labstack/gommon v0.4.2 // indirect
6869
github.com/swaggo/files/v2 v2.0.2 // indirect
6970
github.com/valyala/fasttemplate v1.2.2 // indirect
70-
google.golang.org/protobuf v1.36.10 // indirect
7171
)
7272

7373
require (

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ github.com/google/jsonschema-go v0.3.0 h1:6AH2TxVNtk3IlvkkhjrtbUc4S8AvO0Xii0DxIy
275275
github.com/google/jsonschema-go v0.3.0/go.mod h1:r5quNTdLOYEz95Ru18zA0ydNbBuYoo9tgaYcxEYhJVE=
276276
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
277277
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
278-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=
279-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
280278
github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5 h1:xhMrHhTJ6zxu3gA4enFM9MLn9AY7613teCdFnlUVbSQ=
281279
github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5/go.mod h1:5hDyRhoBCxViHszMt12TnOpEI4VVi+U8Gm9iphldiMA=
282280
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=

0 commit comments

Comments
 (0)