Skip to content

Commit fc3e736

Browse files
authored
Strip grpc.so before upload artifact
1 parent 61b9e1e commit fc3e736

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build-grpc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: 1. Update Sistem & Install Dependensi Dasar
3030
run: |
3131
sudo apt-get update
32-
sudo apt-get install -y software-properties-common curl build-essential zlib1g-dev
32+
sudo apt-get install -y software-properties-common curl build-essential zlib1g-dev binutils
3333
3434
- name: 2. Tambahkan PPA Ondřej & Install PHP + PEAR + XML
3535
# Kunci perbaikannya ada di baris paling bawah ini (menambahkan paket php-xml)
@@ -42,14 +42,14 @@ jobs:
4242
run: |
4343
sudo pecl install grpc-${{ github.event.inputs.grpc_version }}
4444
45-
- name: 4. Ambil File grpc.so
45+
- name: 4. Ambil dan strip File grpc.so
4646
run: |
4747
EXT_DIR=$(php-config --extension-dir)
4848
echo "File grpc.so berhasil dibuat di direktori: $EXT_DIR"
49-
cp $EXT_DIR/grpc.so ./grpc.so
49+
strip --strip-debug -o ./grpc.so $EXT_DIR/grpc.so
5050
5151
- name: 5. Upload File grpc.so sebagai Artifact
5252
uses: actions/upload-artifact@v4
5353
with:
5454
name: grpc-${{ matrix.arch }}-ubuntu22.04-php${{ github.event.inputs.php_version }}-v${{ github.event.inputs.grpc_version }}
55-
path: ./grpc.so
55+
path: ./grpc.so

0 commit comments

Comments
 (0)