Skip to content

Commit 676615d

Browse files
author
Pete Bishop
committed
Version as an env var for easy update
1 parent cf50a0a commit 676615d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build-php.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
env:
1414
GITHUB_TOKEN: ${{ secrets.PAT }}
15+
SPC_VERSION: 2.5.0
1516

1617
jobs:
1718
build:
@@ -35,28 +36,28 @@ jobs:
3536
- name: Set SPC URL for macos-13
3637
shell: bash
3738
if: matrix.os == 'macos-13'
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+
run: echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/${{ env.SPC_VERSION }}/spc-macos-x86_64.tar.gz" >> $GITHUB_ENV
3940

4041
- name: Set SPC URL for macos-latest
4142
shell: bash
4243
if: matrix.os == 'macos-latest'
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+
run: echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/${{ env.SPC_VERSION }}/spc-macos-aarch64.tar.gz" >> $GITHUB_ENV
4445

4546
- name: Set SPC URL for ubuntu-latest and ubuntu-24.04
4647
shell: bash
4748
if: matrix.os == 'ubuntu-latest'
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+
run: echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/${{ env.SPC_VERSION }}/spc-linux-x86_64.tar.gz" >> $GITHUB_ENV
4950

5051
- name: Set SPC URL for ubuntu-24.04-arm
5152
shell: bash
5253
if: matrix.os == 'ubuntu-24.04-arm'
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+
run: echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/${{ env.SPC_VERSION }}/spc-linux-aarch64.tar.gz" >> $GITHUB_ENV
5455

5556
- name: Set SPC URL for windows-latest
5657
shell: bash
5758
if: matrix.os == 'windows-latest'
5859
run: |
59-
echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/2.5.0/spc-windows-x64.exe" >> $GITHUB_ENV
60+
echo "SPC_URL=https://github.com/crazywhalecc/static-php-cli/releases/download/${{ env.SPC_VERSION }}/spc-windows-x64.exe" >> $GITHUB_ENV
6061
echo "SPC_BINARY=spc.exe" >> $GITHUB_ENV
6162
6263
- name: Download SPC

0 commit comments

Comments
 (0)