Skip to content

Commit b25871a

Browse files
committed
chore: upload artifacts for test workflows
1 parent 988bec9 commit b25871a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- 'package-lock.json'
88
- 'action.yml'
99
- 'node_modules/**'
10+
- '.github/workflows/test.yml'
1011

1112
name: Test this action
1213

@@ -18,6 +19,8 @@ jobs:
1819
matrix:
1920
build: [false, true]
2021
variant: [richfelker/musl-cross-make, userdocs/qbt-musl-cross-make]
22+
env:
23+
REPO: ${{ matrix.variant }}
2124
steps:
2225
- name: Checkout code
2326
uses: actions/checkout@v4
@@ -36,9 +39,27 @@ jobs:
3639
sudo apt-get install -y make autoconf automake libtool-bin m4 wget gzip bzip2 bison g++ re2c
3740
3841
- name: Build project
42+
id: build
3943
run: |
44+
echo "source_escaped=${REPO%%/*}_${REPO##*/}" >> $GITHUB_OUTPUT
4045
echo ${{ steps.compiler.outputs.path }}
4146
ls ${{ steps.compiler.outputs.path }}
4247
wget https://raw.githubusercontent.com/pmmp/PHP-Binaries/master/compile.sh
4348
chmod a+x compile.sh
49+
trap "exit 1" ERR
4450
./compile.sh -t android-aarch64 -x -j4 -P5 -s
51+
52+
- name: Create tarball
53+
run: |
54+
tar -czf ./PHP-Linux-aarch64-PM5.tar.gz bin
55+
56+
- name: Upload artifacts
57+
uses: actions/upload-artifact@v4
58+
if: always()
59+
with:
60+
name: Linux-PM5-${{ steps.build.outputs.source_escaped }}-${{ matrix.build }}
61+
path: |
62+
./PHP-Linux-aarch64-PM*.tar.gz
63+
install.log
64+
compile.sh
65+
if-no-files-found: error

0 commit comments

Comments
 (0)