Skip to content

Commit 24f063f

Browse files
committed
Add debug
1 parent faeeb94 commit 24f063f

File tree

1 file changed

+47
-4
lines changed

1 file changed

+47
-4
lines changed

.github/workflows/build-wolfprovider.yml

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,60 @@ jobs:
6565
6666
- name: Install wolfSSL Debian packages from repo tarball
6767
run: |
68+
set -x # Enable debugging
69+
set +e # Don't exit on errors so we can debug
70+
71+
echo "=== Creating wolfssl-pkg directory ==="
6872
mkdir -p "/tmp/wolfssl-pkg"
73+
echo "Exit code: $?"
74+
75+
echo "=== Making install script executable ==="
6976
chmod +x $GITHUB_WORKSPACE/debian/install-wolfssl.sh
77+
echo "Exit code: $?"
78+
79+
echo "=== Running install-wolfssl.sh script ==="
7080
$GITHUB_WORKSPACE/debian/install-wolfssl.sh \
7181
$GITHUB_WORKSPACE/.github/packages/debian-wolfssl.tar.gz \
7282
"/tmp/wolfssl-pkg"
83+
INSTALL_EXIT_CODE=$?
84+
echo "install-wolfssl.sh exit code: $INSTALL_EXIT_CODE"
85+
86+
if [ $INSTALL_EXIT_CODE -ne 0 ]; then
87+
echo "ERROR: install-wolfssl.sh failed with exit code $INSTALL_EXIT_CODE"
88+
echo "Listing contents of /tmp/wolfssl-pkg:"
89+
ls -la /tmp/wolfssl-pkg/ || echo "Directory doesn't exist or is empty"
90+
exit $INSTALL_EXIT_CODE
91+
fi
7392
74-
# Stage wolfSSL debs into artifacts directory
93+
echo "=== Creating wolfprov-packages directory ==="
7594
mkdir -p "/tmp/wolfprov-packages"
76-
echo "Moving wolfssl files to artifacts directory..."
77-
78-
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f \( -name "*.deb" -o -name "*.dsc" -o -name "*.tar.gz" -o -name "*.orig.tar.gz" \) -exec cp {} /tmp/wolfprov-packages/ \;
95+
echo "Exit code: $?"
96+
97+
echo "=== Moving wolfssl files to artifacts directory ==="
98+
echo "Looking for files in /tmp/wolfssl-pkg:"
99+
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f || echo "No wolfssl files found"
100+
101+
echo "Running find commands to copy files:"
102+
103+
echo "1. Copying .deb files:"
104+
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f -name "*.deb" -exec cp {} /tmp/wolfprov-packages/ \;
105+
echo "Exit code: $?"
106+
107+
echo "2. Copying .dsc files:"
108+
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f -name "*.dsc" -exec cp {} /tmp/wolfprov-packages/ \;
109+
echo "Exit code: $?"
110+
111+
echo "3. Copying .tar.gz files:"
112+
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f -name "*.tar.gz" -exec cp {} /tmp/wolfprov-packages/ \;
113+
echo "Exit code: $?"
114+
115+
echo "4. Copying .orig.tar.gz files:"
116+
find /tmp/wolfssl-pkg -name "*wolfssl*" -type f -name "*.orig.tar.gz" -exec cp {} /tmp/wolfprov-packages/ \;
117+
echo "Exit code: $?"
118+
119+
echo "=== Final verification ==="
120+
echo "Contents of /tmp/wolfprov-packages:"
121+
ls -la /tmp/wolfprov-packages/ || echo "Directory is empty"
79122
80123
- name: Build Debian packages (wolfProvider + OpenSSL)
81124
run: |

0 commit comments

Comments
 (0)