Skip to content

Commit

Permalink
check with arm compile
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Oct 7, 2024
1 parent 76378b7 commit 82ab866
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,23 @@ jobs:
cat Cargo.toml
fi
- name: Prepare for cross-compilation
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Build Binary
if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}
# if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}
run: cargo build --verbose --release --target ${{ matrix.target }} # --locked have been removed to avoid error

- name: Build ARM64
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --all --release --target=aarch64-unknown-linux-musl
# - name: Build ARM64
# if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
# uses: actions-rs/cargo@v1
# with:
# use-cross: true
# command: build
# args: --all --release --target=aarch64-unknown-linux-musl

- name: Dry run cargo publish
run: cargo publish --dry-run --allow-dirty --target ${{ matrix.target }}
Expand Down

0 comments on commit 82ab866

Please sign in to comment.