From 2ce5fe48baedd9c52c74235583029c8015e80541 Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Wed, 6 Mar 2024 00:02:46 +0000 Subject: [PATCH] chore: test macos as os for linux arm --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c5bd8f..815eeb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,26 +6,44 @@ on: push: jobs: - publish-linux: - runs-on: macos-14 + publish-linux-x86: + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@1.69 - with: - targets: "aarch64-unknown-linux-musl, x86_64-unknown-linux-musl" + uses: dtolnay/rust-toolchain@stable - name: Build amd64 - run: cargo build --release --target=x86_64-unknown-linux-musl + run: cargo build --release - name: Prepare amd64 binary run: | 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_arm64 + 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 Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: "aarch64-unknown-linux-musl" + - name: Build arm64 run: cargo build --release --target=aarch64-unknown-linux-musl @@ -50,7 +68,7 @@ jobs: uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@1.69 + uses: dtolnay/rust-toolchain@stable - name: Build win64 run: cargo build --release @@ -83,7 +101,7 @@ jobs: uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@1.69 + uses: dtolnay/rust-toolchain@stable with: targets: "aarch64-apple-darwin, x86_64-apple-darwin"