Template
fixes: Removes Windows and Mac Builds. Replaces build with cross for non-native builds
Apparently Cross Compiling to MacOS is basically impossible. Crossing Compiling to Windows is painful but doable, not setting it up here ngl
This commit is contained in:
@@ -69,9 +69,10 @@ jobs:
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@1.90.0
|
||||
with:
|
||||
targets: x86_64-pc-windows-gnu aarch64-apple-darwin aarch64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-musl
|
||||
|
||||
|
||||
- name: Install Cross
|
||||
run: cargo install cross --locked
|
||||
|
||||
- name: Cache cargo dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -87,18 +88,13 @@ jobs:
|
||||
|
||||
- name: Build for Linux x86 (GNU and MUSL)
|
||||
run: |
|
||||
cargo build --target x86_64-unknown-linux-gnu --locked
|
||||
cargo build --target x86_64-unknown-linux-musl --locked
|
||||
cargo build --target --release x86_64-unknown-linux-gnu --locked
|
||||
cargo build --target --release x86_64-unknown-linux-musl --locked
|
||||
|
||||
- name: Build for Linux aarch64 (GNU and MUSL)
|
||||
run: |
|
||||
cargo build --target aarch64-unknown-linux-gnu --locked
|
||||
cargo build --target aarch64-unknown-linux-musl --locked
|
||||
cargo cross --target --release aarch64-unknown-linux-gnu --locked
|
||||
cargo cross --target --release aarch64-unknown-linux-musl --locked
|
||||
|
||||
- name: Build for x86 Windows
|
||||
run: cargo build --target x86_64-pc-windows-gnu --locked
|
||||
|
||||
- name: Build for MacOS aarch64
|
||||
run: cargo build --target aarch64-apple-darwin --locked
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user