Skip to content

Commit

Permalink
chore: testing diff target
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Mar 6, 2024
1 parent cf9c390 commit 1c8c919
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-unknown-linux-musl, x86_64-unknown-linux-musl"
targets: "aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl"

- name: Build amd64
run: cargo build --release
Expand All @@ -26,15 +26,15 @@ jobs:
mv target/release/discrakt target/release/discrakt_amd64
chmod +x target/release/discrakt_amd64
- name: Install compiler tools (as we're cross-compiling)
run: sudo apt install -y gcc-aarch64-linux-gnu

- name: Build arm64
run: |
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
export CC=aarch64-linux-gnu-gcc
cargo build --release --target=aarch64-unknown-linux-musl
run: cargo build --release --target=aarch64-unknown-linux-gnu

- name: Prepare arm64 Binary
run: |
mv target/aarch64-unknown-linux-musl/release/discrakt target/release/discrakt_arm64
mv target/aarch64-unknown-linux-gnu/release/discrakt target/release/discrakt_arm64
chmod +x target/release/discrakt_arm64
- name: Upload binaries
Expand Down

0 comments on commit 1c8c919

Please sign in to comment.