mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-04-04 09:46:43 +00:00
fixing aarch64 workflow
This commit is contained in:
parent
978efa8dcf
commit
c19f927f60
20
.github/workflows/linux-aarch64-nightly.yml
vendored
20
.github/workflows/linux-aarch64-nightly.yml
vendored
@ -79,14 +79,6 @@ jobs:
|
||||
libssl-dev \
|
||||
openssl:arm64
|
||||
|
||||
# Create .cargo/config
|
||||
mkdir -p .cargo
|
||||
cat > .cargo/config << EOF
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
ar = "aarch64-linux-gnu-ar"
|
||||
EOF
|
||||
|
||||
# Setup pkg-config
|
||||
sudo tee /usr/bin/aarch64-linux-gnu-pkg-config << 'EOF'
|
||||
#!/bin/sh
|
||||
@ -95,10 +87,20 @@ jobs:
|
||||
EOF
|
||||
sudo chmod +x /usr/bin/aarch64-linux-gnu-pkg-config
|
||||
|
||||
# Create .cargo/config
|
||||
mkdir -p .cargo
|
||||
cat > .cargo/config << EOF
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
ar = "aarch64-linux-gnu-ar"
|
||||
EOF
|
||||
|
||||
# Set environment variables
|
||||
echo "PKG_CONFIG=/usr/bin/aarch64-linux-gnu-pkg-config" >> $GITHUB_ENV
|
||||
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
|
||||
echo "OPENSSL_DIR=/usr/include/aarch64-linux-gnu" >> $GITHUB_ENV
|
||||
echo "OPENSSL_DIR=/usr" >> $GITHUB_ENV
|
||||
echo "OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu" >> $GITHUB_ENV
|
||||
echo "OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu" >> $GITHUB_ENV
|
||||
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Frontend
|
||||
|
Loading…
x
Reference in New Issue
Block a user