Skip to content

Commit 54d992f

Browse files
Update build_linux_amd.yml
1 parent faf5b96 commit 54d992f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build_linux_amd.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,22 @@ jobs:
3333
cd build
3434
make VERBOSE=1 || (cat Makefile && exit 1)
3535
36-
- name: Collect Qt Libraries
36+
- name: Prepare for Packaging
3737
run: |
3838
cd build
39-
ldd SerialPortDebugger > /tmp/ldd-output.txt
40-
cd /tmp
41-
tar -czvf QtLibraries.tar.gz ldd-output.txt
39+
mkdir -p appbundle
40+
cp SerialPortDebugger appbundle/
41+
42+
- name: Collect Qt Libraries
43+
run: |
44+
cd build/appbundle
45+
ldd SerialPortDebugger | grep "=> /" | awk '{print $3}' | xargs -I{} cp --parents {} ./
46+
tar -czvf ../QtLibraries.tar.gz .
4247
4348
- name: Package Application and Libraries
4449
run: |
4550
cd build
46-
tar -czvf Application_and_Libraries.tar.gz SerialPortDebugger /tmp/QtLibraries.tar.gz
51+
tar -czvf Application_and_Libraries.tar.gz SerialPortDebugger ./appbundle/lib/*
4752
4853
- name: Archive Artifacts
4954
uses: actions/upload-artifact@v4
@@ -53,4 +58,4 @@ jobs:
5358

5459
- name: Clean up
5560
run: |
56-
rm -rf /tmp/ldd-output.txt /tmp/QtLibraries.tar.gz
61+
rm -rf build/appbundle build/QtLibraries.tar.gz

0 commit comments

Comments
 (0)