From 309d5d2028c8738c55d3801f4955b741d1222c42 Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Tue, 5 Mar 2024 23:58:15 +0000 Subject: [PATCH] fix: attempt at linux release fix --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ec62cd..6c5bd8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,20 +3,23 @@ name: Release on: release: types: [created] + push: jobs: publish-linux: - runs-on: ubuntu-latest + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.69 + with: + targets: "aarch64-unknown-linux-musl, x86_64-unknown-linux-musl" - name: Build amd64 - run: cargo build --release + run: cargo build --release --target=x86_64-unknown-linux-musl - name: Prepare amd64 binary run: | @@ -32,6 +35,7 @@ jobs: chmod +x target/release/discrakt_arm64 - name: Upload binaries + if: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -46,7 +50,7 @@ jobs: uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.69 - name: Build win64 run: cargo build --release @@ -64,6 +68,7 @@ jobs: run: mv target/release/discrakt.exe target/release/discrakt_win64_silent.exe - name: Upload binaries + if: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -71,14 +76,14 @@ jobs: gh release upload ${{ github.ref_name }} target/release/discrakt_win64.exe publish-mac: - runs-on: macos-latest + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.69 with: targets: "aarch64-apple-darwin, x86_64-apple-darwin" @@ -99,6 +104,7 @@ jobs: chmod +x target/release/discrakt_darwin_arm64 - name: Upload binaries + if: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |