Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1 cross-compile #56

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ jobs:
run: OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu OPENSSL_INCLUDE_DIR=/usr/include/openssl cargo build --release --target-dir dist/

- name: Build artifact
if: matrix.target != 'x86_64-unknown-linux-gnu'
if: matrix.target == 'aarch64-apple-darwin'
run: |
cargo build --release --target-dir dist/ --target aarch64-apple-darwin
mv ./dist/aarch64-apple-darwin/release/refact-lsp ./dist/release/refact-lsp

- name: Build artifact
if: matrix.target != 'x86_64-unknown-linux-gnu' && matrix.target != 'aarch64-apple-darwin'
run: cargo build --release --target-dir dist/

- name: Upload artifacts
Expand Down