Skip to content

Commit 1bb548c

Browse files
committed
chore(build.yaml): update build dependencies and environment variables
1. Add 'perl' to the list of build dependencies to ensure all necessary tools are available for the build process. 2. Remove 'OPENSSL_STATIC' and 'OPENSSL_DIR' environment variables as they are no longer needed. 3. Add 'CFLAGS_x86_64_unknown_linux_musl' environment variable to specify the include directory for the musl target, improving the build process compatibility with musl.
1 parent 4cb7545 commit 1bb548c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Build Dependencies
4040
run: |
4141
sudo apt-get update
42-
sudo apt-get install -y build-essential pkg-config libssl-dev cmake musl-tools pigz jq unzip libsasl2-dev musl-dev linux-headers-generic
42+
sudo apt-get install -y build-essential pkg-config libssl-dev cmake musl-tools pigz jq unzip libsasl2-dev musl-dev perl
4343
4444
- name: Install Nextest
4545
run: |
@@ -80,8 +80,7 @@ jobs:
8080
env:
8181
RUSTFLAGS: "-C target-feature=+crt-static"
8282
CC_x86_64_unknown_linux_musl: musl-gcc
83-
OPENSSL_STATIC: "1"
84-
OPENSSL_DIR: /usr
83+
CFLAGS_x86_64_unknown_linux_musl: "-I/usr/include/x86_64-linux-musl"
8584
run: |
8685
cargo build --release --target x86_64-unknown-linux-musl --no-default-features --features target-x86_64-unknown-linux-musl
8786
echo "Build completed successfully"

0 commit comments

Comments
 (0)