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"