Skip to content

Commit 5551c62

Browse files
author
kennethdashensheridan
committed
Fix OpenSSL build issues by using glibc instead of musl target
1 parent cc5c69d commit 5551c62

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,24 @@ jobs:
5858
dmidecode \
5959
ipmitool \
6060
pkg-config \
61-
libssl-dev \
62-
musl-tools \
63-
musl-dev \
64-
libssl-dev:amd64
61+
libssl-dev
6562
6663
- name: Install Rust toolchain
6764
uses: actions-rs/toolchain@v1
6865
with:
6966
toolchain: stable
7067
override: true
71-
# Add the musl target
72-
target: x86_64-unknown-linux-musl
73-
74-
- name: Set environment variables for musl
75-
run: |
76-
echo "OPENSSL_DIR=/usr" >> $GITHUB_ENV
77-
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
78-
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
79-
echo "PKG_CONFIG_SYSROOT_DIR=/" >> $GITHUB_ENV
68+
target: x86_64-unknown-linux-gnu
8069

81-
- name: Build Release Binary (musl)
70+
- name: Build Release Binary
8271
run: |
83-
cargo build --release --target x86_64-unknown-linux-musl
72+
cargo build --release --target x86_64-unknown-linux-gnu
8473
mkdir -p build/release
8574
86-
# Rename the musl-based binary
87-
cp target/x86_64-unknown-linux-musl/release/hardware_report build/release/hardware_report-linux-x86_64
75+
# Copy the binary
76+
cp target/x86_64-unknown-linux-gnu/release/hardware_report build/release/hardware_report-linux-x86_64
8877
89-
# Optional: 'strip' the binary to reduce size
78+
# Strip the binary to reduce size
9079
strip build/release/hardware_report-linux-x86_64
9180
9281
- name: Create tarball

0 commit comments

Comments
 (0)