20
20
runner :
21
21
- " ubuntu-latest"
22
22
- " macos-13"
23
- - " ubuntu-20 .04"
23
+ - " ubuntu-24 .04-arm "
24
24
- " macos-14"
25
25
combination :
26
26
- minimal
@@ -52,10 +52,10 @@ jobs:
52
52
echo "ARCH=x86_64" >> "$GITHUB_OUTPUT"
53
53
echo "CMD=bin/spc-alpine-docker" >> "$GITHUB_OUTPUT"
54
54
;;
55
- ubuntu-20 .04)
55
+ ubuntu-24 .04-arm )
56
56
echo "OS=linux" >> "$GITHUB_OUTPUT"
57
57
echo "ARCH=aarch64" >> "$GITHUB_OUTPUT"
58
- echo CMD="SPC_USE_ARCH=aarch64 bin/spc-alpine-docker" >> "$GITHUB_OUTPUT"
58
+ echo CMD="bin/spc-alpine-docker" >> "$GITHUB_OUTPUT"
59
59
;;
60
60
windows-2019)
61
61
echo "OS=windows" >> "$GITHUB_OUTPUT"
82
82
ref : main
83
83
84
84
- name : " Setup PHP"
85
- if : matrix.runner != 'ubuntu-20 .04'
85
+ if : matrix.runner != 'ubuntu-24 .04-arm' && matrix.runner != 'ubuntu-latest '
86
86
uses : shivammathur/setup-php@v2
87
87
with :
88
88
php-version : 8.4
@@ -107,7 +107,7 @@ jobs:
107
107
key : pack-lib-dependencies-${{ matrix.combination }}-${{ matrix.php-version }}-${{ matrix.runner }}
108
108
109
109
- name : " Install Dependencies"
110
- if : matrix.runner != 'ubuntu-20 .04'
110
+ if : matrix.runner != 'ubuntu-24 .04-arm' && matrix.runner != 'ubuntu-latest '
111
111
run : composer update -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-dev
112
112
113
113
- run : ${{ steps.process-env.outputs.CMD }} doctor --auto-fix
@@ -122,9 +122,7 @@ jobs:
122
122
run : |
123
123
if [ "${{ steps.process-env.outputs.OS }}" = "linux" ]; then
124
124
${{ steps.process-env.outputs.CMD }} install-pkg upx
125
- if [ "${{ steps.process-env.outputs.ARCH }}" = "x86_64" ]; then
126
- UPX=--with-upx-pack
127
- fi
125
+ UPX=--with-upx-pack
128
126
fi
129
127
130
128
${{ steps.process-env.outputs.CMD }} build --build-cli --build-micro --build-fpm ${{ steps.process-env.outputs.EXTENSIONS }} --debug $UPX
@@ -135,21 +133,6 @@ jobs:
135
133
cp buildroot/bin/micro.sfx tmp_dist/
136
134
cp buildroot/bin/php-fpm tmp_dist/
137
135
138
- # UPX outside for linux-aarch64
139
- if [ "${{ steps.process-env.outputs.OS }}-${{ steps.process-env.outputs.ARCH }}" = "linux-aarch64" ]; then
140
- mkdir -p upx-x86_64
141
- cd upx-x86_64
142
- curl -#fSL -o upx.txz https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz
143
- tar -xf upx.txz --strip-components 1
144
- ./upx --best ../tmp_dist/php
145
- ./upx --best ../tmp_dist/micro.sfx
146
- SFX_SIZE=$(readelf -l ../tmp_dist/micro.sfx | awk '/LOAD|GNU_STACK/ {getline; print $1, $2, $3, $4, $6, $7}' | sed -n '2p' | awk '{print $1}')
147
- head -c $(printf "%d" $SFX_SIZE) ../tmp_dist/micro.sfx > ../tmp_dist/micro.sfx.new
148
- mv ../tmp_dist/micro.sfx.new ../tmp_dist/micro.sfx
149
- ./upx --best ../tmp_dist/php-fpm
150
- cd ..
151
- fi
152
-
153
136
PHPVER=$(cat source/php-src/main/php_version.h | grep "PHP_VERSION " | awk -F\" '{print $2}')
154
137
155
138
if [ ! -d "dist" ]; then
0 commit comments