Skip to content

Commit

Permalink
chore: retry on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Mar 6, 2024
1 parent a9426a9 commit 061ac48
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,11 @@ jobs:
mv target/release/discrakt target/release/discrakt_amd64
chmod +x target/release/discrakt_amd64
- name: Upload binaries
if: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} target/release/discrakt_amd64
publish-linux-arm:
runs-on: macos-14

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Cross Compilers
run: brew install filosottile/musl-cross/musl-cross

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-unknown-linux-musl"

- name: Build arm64
run: cargo build --release --target=aarch64-unknown-linux-musl
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
- name: Prepare arm64 Binary
run: |
Expand All @@ -60,6 +41,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} target/release/discrakt_arm64
gh release upload ${{ github.ref_name }} target/release/discrakt_amd64
publish-win:
runs-on: windows-latest
Expand Down

0 comments on commit 061ac48

Please sign in to comment.