Skip to content

Commit 4f52895

Browse files
committed
Update build-windows-release-binary.yml
1 parent fbb598a commit 4f52895

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/build-windows-release-binary.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Release Binaries
1+
name: Build Windows Release Binary
22

33
on:
44
push:
@@ -24,48 +24,42 @@ jobs:
2424
php-version: "8.2"
2525
extensions: bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,mbstring,openssl,pcntl,pdo_mysql,pdo_sqlite,pdo,phar,posix,readline,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib
2626

27-
- name: Get the version
28-
id: get_version
29-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $env:GITHUB_ENV
30-
3127
- name: Install dependencies
3228
run: |
3329
composer install --prefer-dist --no-progress --no-dev --quiet
3430
3531
- name: Install SPC
3632
run: |
3733
curl -L -O https://github.com/crazywhalecc/static-php-cli/releases/latest/download/spc-windows-x64.exe
38-
ls
3934
.\spc-windows-x64.exe --version
4035
4136
- name: Build Binary
4237
run: |
43-
php php-parser app:build --build-version=${{ env.VERSION }}
38+
php php-parser app:build --build-version=${{ github.ref_name }}
4439
4540
- name: Download PHP
4641
run: |
4742
curl -L -O https://dl.static-php.dev/static-php-cli/windows/spc-max/php-8.3.9-micro-win.zip
48-
ls
4943
tar -xf php-8.3.9-micro-win.zip
5044
mkdir -p buildroot/bin
5145
mv micro.sfx buildroot/bin
5246
5347
- name: SPC Combine
5448
run: |
55-
.\spc-windows-x64.exe micro:combine builds/php-parser -O bin/php-parser-${{ env.VERSION }}-x64-win32
49+
.\spc-windows-x64.exe micro:combine builds/php-parser -O bin/php-parser-${{ github.ref_name }}-x64-win32
5650
5751
- name: Upload binary as artifact
5852
uses: actions/upload-artifact@v4
5953
with:
60-
name: php-parser-${{ env.VERSION }}-x64-win32
61-
path: bin/php-parser-${{ env.VERSION }}-x64-win32
54+
name: php-parser-${{ github.ref_name }}-x64-win32
55+
path: bin\php-parser-${{ github.ref_name }}-x64-win32
6256

6357
- name: Create Release
6458
uses: softprops/action-gh-release@v1
6559
if: startsWith(github.ref, 'refs/tags/')
6660
with:
6761
files: |
68-
bin/php-parser-${{ env.VERSION }}-x64-win32
62+
bin\php-parser-${{ github.ref_name }}-x64-win32
6963
fail_on_unmatched_files: true
7064
env:
7165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)