Skip to content

Commit

Permalink
Cross compile with cargo without cross
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Feb 4, 2024
1 parent aa33441 commit c2a2584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,9 @@ jobs:
with:
targets: aarch64-apple-darwin

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Run cargo check for arm
run: cross check --target aarch64-apple-darwin
env:
SDKROOT: /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk
MACOSX_DEPLOYMENT_TARGET: 13.1
DEVELOPER_DIR: /Applications/Xcode_14.2.app
run: cargo check --target aarch64-apple-darwin




9 changes: 1 addition & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,8 @@ jobs:
with:
targets: aarch64-apple-darwin

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build
run: cross build --release --target aarch64-apple-darwin
env:
SDKROOT: /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk
MACOSX_DEPLOYMENT_TARGET: 13.1
DEVELOPER_DIR: /Applications/Xcode_14.2.app
run: cargo build --release --target aarch64-apple-darwin

- name: Compress
run: tar -zcvf camilladsp.tar.gz -C target/aarch64-apple-darwin/release camilladsp
Expand Down

0 comments on commit c2a2584

Please sign in to comment.