Skip to content

Commit 1b4d209

Browse files
author
VM
committed
ci: install system dependencies in release action
1 parent 8c35d4c commit 1b4d209

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/Release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ jobs:
5151
sudo apt-get install -y build-essential
5252
# Create musl-g++ wrapper with proper C++ support
5353
GCC_VERSION=$(gcc -dumpversion | cut -d. -f1)
54-
cat << WRAPPER | sudo tee /usr/local/bin/musl-g++
55-
#!/bin/bash
56-
exec musl-gcc -x c++ \\
57-
-idirafter /usr/include/c++/$GCC_VERSION \\
58-
-idirafter /usr/include/x86_64-linux-gnu/c++/$GCC_VERSION \\
59-
-idirafter /usr/include/c++/$GCC_VERSION/backward \\
60-
"\$@"
61-
WRAPPER
54+
sudo tee /usr/local/bin/musl-g++ > /dev/null << 'WRAPPER'
55+
#!/bin/bash
56+
exec musl-gcc -x c++ \
57+
-idirafter /usr/include/c++/GCC_VERSION_PLACEHOLDER \
58+
-idirafter /usr/include/x86_64-linux-gnu/c++/GCC_VERSION_PLACEHOLDER \
59+
-idirafter /usr/include/c++/GCC_VERSION_PLACEHOLDER/backward \
60+
"$@"
61+
WRAPPER
62+
# Replace placeholder with actual GCC version
63+
sudo sed -i "s/GCC_VERSION_PLACEHOLDER/$GCC_VERSION/g" /usr/local/bin/musl-g++
6264
# Make it executable
6365
sudo chmod +x /usr/local/bin/musl-g++
6466
echo "musl-g++ created successfully"

0 commit comments

Comments
 (0)