Skip to content

Commit

Permalink
arm
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Sep 21, 2023
1 parent ca14439 commit e7b6fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 1 addition & 5 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ rustflags = ["--cfg", "tokio_unstable"]

[env]
BORING_BSSL_SOURCE_PATH = { value = "deps/boringssl/src", relative = true}
RUST_LOG= { value = "clash=trace" }

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
rustflags = ["-Clinker-flavor=gcc"]
RUST_LOG= { value = "clash=trace" }
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macos-13]
arch: [x86_64, aarch64]
include:
- os: ubuntu-22.04
arch: x86_64
container: quay.io/pypa/manylinux_2_28_x86_64
targets: >
x86_64-unknown-linux-gnu
# aarch64-unknown-linux-gnu
- os: ubuntu-22.04
arch: aarch64
container: quay.io/pypa/manylinux_2_28_aarch64
targets: >
aarch64-unknown-linux-gnu
- os: macos-13
targets: >
aarch64-apple-darwin
Expand Down
8 changes: 0 additions & 8 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ set -xe
for TARGET in $1; do
echo "building for $TARGET"
rustup target add $TARGET
case $TARGET in
aarch64-unknown-linux-gnu)
sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
export BINDGEN_EXTRA_CLANG_ARGS='-I/usr/aarch64-linux-gnu/include'
;;
*)
;;
esac
cargo build -p clash --target $TARGET --release
ls -l ./target/$TARGET/release/
mv ./target/$TARGET/release/clash ./target/artifacts/clash-$TARGET
Expand Down

0 comments on commit e7b6fda

Please sign in to comment.