12
12
13
13
env :
14
14
GITHUB_TOKEN : ${{ secrets.PAT }}
15
+ SPC_VERSION : 2.4.4
16
+ # Temporary workaround. See https://github.com/NativePHP/laravel/issues/522#issuecomment-2736250539
17
+ # Remove when updating SPC version
18
+ WINBUILD_ACKNOWLEDGE_DEPRECATED : yes
15
19
16
20
jobs :
17
21
build :
@@ -35,35 +39,40 @@ jobs:
35
39
- name : Set SPC URL for macos-13
36
40
shell : bash
37
41
if : matrix.os == 'macos-13'
38
- run : echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly/ spc-macos-x86_64" >> $GITHUB_ENV
42
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/${{ env.SPC_VERSION }}/ spc-macos-x86_64.tar.gz " >> $GITHUB_ENV
39
43
40
44
- name : Set SPC URL for macos-latest
41
45
shell : bash
42
46
if : matrix.os == 'macos-latest'
43
- run : echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly/ spc-macos-aarch64" >> $GITHUB_ENV
47
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/${{ env.SPC_VERSION }}/ spc-macos-aarch64.tar.gz " >> $GITHUB_ENV
44
48
45
49
- name : Set SPC URL for ubuntu-latest and ubuntu-24.04
46
50
shell : bash
47
51
if : matrix.os == 'ubuntu-latest'
48
- run : echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly/ spc-linux-x86_64" >> $GITHUB_ENV
52
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/${{ env.SPC_VERSION }}/ spc-linux-x86_64.tar.gz " >> $GITHUB_ENV
49
53
50
54
- name : Set SPC URL for ubuntu-24.04-arm
51
55
shell : bash
52
56
if : matrix.os == 'ubuntu-24.04-arm'
53
- run : echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly/ spc-linux-aarch64" >> $GITHUB_ENV
57
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/${{ env.SPC_VERSION }}/ spc-linux-aarch64.tar.gz " >> $GITHUB_ENV
54
58
55
59
- name : Set SPC URL for windows-latest
56
60
shell : bash
57
61
if : matrix.os == 'windows-latest'
58
62
run : |
59
- echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly /spc-windows-x64.exe" >> $GITHUB_ENV
63
+ echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/${{ env.SPC_VERSION }} /spc-windows-x64.exe" >> $GITHUB_ENV
60
64
echo "SPC_BINARY=spc.exe" >> $GITHUB_ENV
61
65
62
66
- name : Download SPC
63
67
shell : bash
64
68
run : |
65
69
cd ..
66
- curl -fsSL -o ${{ env.SPC_BINARY }} ${{ env.SPC_URL }}
70
+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
71
+ curl -fsSL -o ${{ env.SPC_BINARY }} ${{ env.SPC_URL }}
72
+ else
73
+ curl -fsSL -o ${{ env.SPC_BINARY }}.tar.gz ${{ env.SPC_URL }}
74
+ tar -xzf ${{ env.SPC_BINARY }}.tar.gz
75
+ fi
67
76
chmod +x ${{ env.SPC_BINARY }}
68
77
[ ! -d static-php-cli/bin ] && mkdir -p static-php-cli/bin
69
78
mv ${{ env.SPC_BINARY }} static-php-cli/bin/
@@ -149,7 +158,7 @@ jobs:
149
158
- name : Build PHP
150
159
run : |
151
160
cd ../static-php-cli
152
- ./bin/${{ env.SPC_BINARY }} build --build-cli "${{ env.PHP_EXTENSIONS }}" --with-libs="${{ env.PHP_LIBS }}"
161
+ ./bin/${{ env.SPC_BINARY }} build --build-cli "${{ env.PHP_EXTENSIONS }}" --with-libs="${{ env.PHP_LIBS }}" --debug
153
162
cd ../php-bin
154
163
155
164
- name : Get built PHP version
0 commit comments