chore: fix cross build

This commit is contained in:
eric committed 2024-05-02 02:46:18 +08:00
1 parent effac11504
commit 7a31f50c56
3 files changed
+2 -13

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
./scripts/build_cross.sh ${{ matrix.target }}
cross build --release --target ${{ matrix.target }}
- name: rename and compress artifacts
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
./scripts/build_cross.sh ${{ matrix.target }}
cross build --release --target ${{ matrix.target }}
- name: rename and compress artifacts
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
-11
View File
@@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -ex
target=$1
if [[ "$target" == *"mips"* ]]; then
cross build --release --target $target --manifest-path leaf-cli/Cargo.toml --no-default-features --features "default-openssl"
else
cross build --release --target $target --manifest-path leaf-cli/Cargo.toml --no-default-features --features "default-ring"
fi