@@ -35,35 +35,40 @@ jobs:
35
35
- name : Set SPC URL for macos-13
36
36
shell : bash
37
37
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
38
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/2.5.0/ spc-macos-x86_64.tar.gz " >> $GITHUB_ENV
39
39
40
40
- name : Set SPC URL for macos-latest
41
41
shell : bash
42
42
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
43
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/2.5.0/ spc-macos-aarch64.tar.gz " >> $GITHUB_ENV
44
44
45
45
- name : Set SPC URL for ubuntu-latest and ubuntu-24.04
46
46
shell : bash
47
47
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
48
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/2.5.0/ spc-linux-x86_64.tar.gz " >> $GITHUB_ENV
49
49
50
50
- name : Set SPC URL for ubuntu-24.04-arm
51
51
shell : bash
52
52
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
53
+ run : echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/2.5.0/ spc-linux-aarch64.tar.gz " >> $GITHUB_ENV
54
54
55
55
- name : Set SPC URL for windows-latest
56
56
shell : bash
57
57
if : matrix.os == 'windows-latest'
58
58
run : |
59
- echo "SPC_URL=https://dl.static-php.dev/ static-php-cli/spc-bin/nightly /spc-windows-x64.exe" >> $GITHUB_ENV
59
+ echo "SPC_URL=https://github.com/crazywhalecc/ static-php-cli/releases/download/2.5.0 /spc-windows-x64.exe" >> $GITHUB_ENV
60
60
echo "SPC_BINARY=spc.exe" >> $GITHUB_ENV
61
61
62
62
- name : Download SPC
63
63
shell : bash
64
64
run : |
65
65
cd ..
66
- curl -fsSL -o ${{ env.SPC_BINARY }} ${{ env.SPC_URL }}
66
+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
67
+ curl -fsSL -o ${{ env.SPC_BINARY }} ${{ env.SPC_URL }}
68
+ else
69
+ curl -fsSL -o ${{ env.SPC_BINARY }}.tar.gz ${{ env.SPC_URL }}
70
+ tar -xzf ${{ env.SPC_BINARY }}.tar.gz
71
+ fi
67
72
chmod +x ${{ env.SPC_BINARY }}
68
73
[ ! -d static-php-cli/bin ] && mkdir -p static-php-cli/bin
69
74
mv ${{ env.SPC_BINARY }} static-php-cli/bin/
0 commit comments