Skip to content

Commit fa10142

Browse files
authored
Merge pull request #847 from crazywhalecc/fix/spc-exe
Fix spc build actions version, add spc validation
2 parents 085abd6 + c342741 commit fa10142

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

.github/workflows/release-build.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: Build SPC Binary
33
on:
44
push:
55
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
paths:
9+
- '.github/workflows/release-build.yml'
610
release:
711
types:
812
- published
913
workflow_dispatch:
1014

1115
env:
1216
PHP_VERSION: 8.4
13-
MICRO_VERSION: 8.4.10
17+
MICRO_VERSION: 8.4.11
1418

1519
jobs:
1620
build-release-artifacts:
@@ -117,7 +121,8 @@ jobs:
117121
files: dist/${{ matrix.operating-system.filename }}
118122

119123
- name: "Deploy to self-hosted OSS"
120-
if: github.repository == 'crazywhalecc/static-php-cli'
124+
# only run this step if the repository is static-php-cli and the branch is main
125+
if: github.repository == 'crazywhalecc/static-php-cli' && github.ref == 'refs/heads/main'
121126
uses: static-php/[email protected]
122127
with:
123128
aws_key_id: ${{ secrets.AWS_KEY_ID }}
@@ -132,3 +137,39 @@ jobs:
132137
with:
133138
path: spc${{ env.SUFFIX }}
134139
name: spc-${{ matrix.operating-system.name }}${{ env.SUFFIX }}
140+
test-spc:
141+
name: "Test SPC Binary for ${{ matrix.operating-system.name }}"
142+
runs-on: ${{ matrix.operating-system.os }}
143+
needs: [build-release-artifacts]
144+
strategy:
145+
matrix:
146+
operating-system:
147+
- name: "linux-x86_64"
148+
os: "ubuntu-latest"
149+
- name: "macos-x86_64"
150+
os: "macos-13"
151+
- name: "linux-aarch64"
152+
os: "ubuntu-24.04-arm"
153+
- name: "macos-aarch64"
154+
os: "macos-latest"
155+
- name: "windows-x64"
156+
os: "windows-latest"
157+
steps:
158+
- name: "Checkout"
159+
uses: actions/checkout@v4
160+
161+
- name: "Download Artifact"
162+
uses: actions/download-artifact@v4
163+
env:
164+
SUFFIX: ${{ matrix.operating-system.name == 'windows-x64' && '.exe' || '' }}
165+
with:
166+
name: spc-${{ matrix.operating-system.name }}${{ env.SUFFIX }}
167+
168+
- name: "Chmod"
169+
if: matrix.operating-system.name != 'windows-x64'
170+
run: chmod +x spc
171+
172+
- name: "Run SPC Tests"
173+
env:
174+
SUFFIX: ${{ matrix.operating-system.name == 'windows-x64' && '.exe' || '' }}
175+
run: ./spc${{ env.SUFFIX }} dev:extensions

src/SPC/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
final class ConsoleApplication extends Application
3636
{
37-
public const VERSION = '2.7.0';
37+
public const VERSION = '2.7.1';
3838

3939
public function __construct()
4040
{

0 commit comments

Comments
 (0)