Skip to content

Commit a43bc9c

Browse files
author
VM
committed
ci: install system dependencies in release action
1 parent be4f120 commit a43bc9c

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/Release.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,8 @@ jobs:
4242
if: matrix.target == 'x86_64-unknown-linux-musl' && startsWith(matrix.os, 'ubuntu')
4343
run: |
4444
sudo apt-get update
45-
sudo apt-get install -y musl-tools musl-dev
46-
47-
- name: Setup C++ for MUSL
48-
if: matrix.target == 'x86_64-unknown-linux-musl'
49-
run: |
50-
# Install build-essential for libstdc++
51-
sudo apt-get install -y build-essential
52-
# Create musl-g++ wrapper with proper C++ support
53-
GCC_VERSION=$(gcc -dumpversion | cut -d. -f1)
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++
64-
# Make it executable
65-
sudo chmod +x /usr/local/bin/musl-g++
66-
echo "musl-g++ created successfully"
67-
cat /usr/local/bin/musl-g++
45+
sudo apt-get install -y clang
46+
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
6847
6948
- name: Configure MUSL environment
7049
if: matrix.target == 'x86_64-unknown-linux-musl'

0 commit comments

Comments
 (0)