Skip to content

Commit cf50a0a

Browse files
author
Pete Bishop
committed
Pin to v2.5.0
1 parent bc3c8ee commit cf50a0a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-php.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,40 @@ jobs:
3535
- name: Set SPC URL for macos-13
3636
shell: bash
3737
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
3939

4040
- name: Set SPC URL for macos-latest
4141
shell: bash
4242
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
4444

4545
- name: Set SPC URL for ubuntu-latest and ubuntu-24.04
4646
shell: bash
4747
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
4949

5050
- name: Set SPC URL for ubuntu-24.04-arm
5151
shell: bash
5252
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
5454

5555
- name: Set SPC URL for windows-latest
5656
shell: bash
5757
if: matrix.os == 'windows-latest'
5858
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
6060
echo "SPC_BINARY=spc.exe" >> $GITHUB_ENV
6161
6262
- name: Download SPC
6363
shell: bash
6464
run: |
6565
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
6772
chmod +x ${{ env.SPC_BINARY }}
6873
[ ! -d static-php-cli/bin ] && mkdir -p static-php-cli/bin
6974
mv ${{ env.SPC_BINARY }} static-php-cli/bin/

0 commit comments

Comments
 (0)