chore: fix cross build

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

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' }}

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' }}

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