This repository was archived by the owner on Oct 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414
1515jobs :
1616 build :
17- runs-on : ubuntu -latest
17+ runs-on : macos -latest
1818 permissions :
1919 id-token : write
2020 contents : read
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ PLUGIN_NAME=docker-model
77
88VERSION ?=
99
10+ MACOS_MIN_VERSION := 14.0
11+ MACOS_MIN_VERSION_LDFLAG := -mmacosx-version-min=$(MACOS_MIN_VERSION )
12+
1013all : build
1114
1215build :
@@ -33,7 +36,7 @@ release:
3336 exit 1; \
3437 fi
3538 @echo " Building release version '$( VERSION) '..."
36- GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 CGO_CFLAGS=" -mmacosx-version-min=14.0 " CGO_LDFLAGS=" -mmacosx-version-min=14.0 " go build -trimpath -ldflags=" -s -w -X github.com/docker/model-cli/desktop.Version=$( VERSION) " -o dist/darwin-arm64/$(PLUGIN_NAME ) .
39+ GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 CGO_CFLAGS=" $( MACOS_MIN_VERSION_LDFLAG ) " CGO_LDFLAGS=" $( MACOS_MIN_VERSION_LDFLAG ) " go build -trimpath -ldflags=" -s -w -X github.com/docker/model-cli/desktop.Version=$( VERSION) " -o dist/darwin-arm64/$(PLUGIN_NAME ) .
3740 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags=" -s -w -X github.com/docker/model-cli/desktop.Version=$( VERSION) " -o dist/windows-amd64/$(PLUGIN_NAME ) .exe .
3841 GOOS=windows GOARCH=arm64 go build -trimpath -ldflags=" -s -w -X github.com/docker/model-cli/desktop.Version=$( VERSION) " -o dist/windows-arm64/$(PLUGIN_NAME ) .exe .
3942 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags=" -s -w -X github.com/docker/model-cli/desktop.Version=$( VERSION) " -o dist/linux-amd64/$(PLUGIN_NAME ) .
You can’t perform that action at this time.
0 commit comments