Skip to content

Commit 0182ca6

Browse files
author
Julien Jacottet
committed
remove macOS amd64 support from static builds
1 parent dca8dae commit 0182ca6

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ jobs:
5050
spc_binary: https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64
5151
build_options: --build-micro --with-upx-pack
5252
filename: automate-linux-amd64
53-
# MacOS amd64
54-
- runs_on: macos-13
55-
spc_binary: https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-macos-x86_64
56-
build_options: --build-micro
57-
filename: automate-darwin-amd64
5853
# MacOS arm64
59-
- runs_on: macos-14
54+
- runs_on: macos-latest
6055
spc_binary: https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-macos-aarch64
6156
build_options: --build-micro
6257
filename: automate-darwin-arm64

doc/static/install

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,29 @@ platform_check() {
8383
exit 1
8484
;;
8585
esac
86-
output " [*] Your architecture (${arch}) is supported" "success"
8786

8887
platform="${os}-${arch}"
88+
89+
# Check if the platform combination is supported
90+
case ${platform} in
91+
"linux-amd64"|"darwin-arm64")
92+
output " [*] Your platform (${platform}) is supported" "success"
93+
;;
94+
"darwin-amd64")
95+
output " [ ] macOS Intel (amd64) is no longer supported" "error"
96+
output " Please use an Apple Silicon (arm64) device" "error"
97+
exit 1
98+
;;
99+
"linux-arm64")
100+
output " [ ] Linux ARM64 is not currently supported" "error"
101+
output " Please use Linux AMD64" "error"
102+
exit 1
103+
;;
104+
*)
105+
output " [ ] Your platform (${platform}) is not currently supported" "error"
106+
exit 1
107+
;;
108+
esac
89109
}
90110

91111
last_release_version() {

0 commit comments

Comments
 (0)