diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 575faee..18d40ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,27 +80,33 @@ jobs: version: latest # Each platform has its own particulars, can't do cool matrix things here. # Just fall back to conditionals. - - run: mkdir release - - name: "build for linux" + - name: "build and upload for linux" if: ${{ matrix.os-name == 'linux' }} run: | + mkdir release cross build --features jemalloc --target=x86_64-unknown-linux-musl --release mv target/x86_64-unknown-linux-musl/release/broker release/broker-$RELEASE_VERSION-x86_64-linux - - name: "build for macos" + gh release upload ${{ github.ref_name }} $(find release -mindepth 1 | xargs) --clobber + + - name: "build and upload for macos" if: ${{ matrix.os-name == 'macos' }} run: | + mkdir release rustup target add aarch64-apple-darwin rustup target add x86_64-apple-darwin cargo build --target=aarch64-apple-darwin --release cargo build --target=x86_64-apple-darwin --release mv target/aarch64-apple-darwin/release/broker release/broker-$RELEASE_VERSION-aarch64-macos mv target/x86_64-apple-darwin/release/broker release/broker-$RELEASE_VERSION-x86_64-macos - - name: "build for windows" + gh release upload ${{ github.ref_name }} $(find release -mindepth 1 | xargs) --clobber + + - name: "build and upload for windows" if: ${{ matrix.os-name == 'windows' }} run: | + mkdir release rustup run 1.68 cargo build --release mv target/release/broker.exe release/broker-$RELEASE_VERSION-x86_64-windows.exe - - run: gh release upload ${{ github.ref_name }} $(find release -mindepth 1 | xargs) --clobber + gh release upload ${{ github.ref_name }} release/broker-$RELEASE_VERSION-x86_64-windows.exe --clobber # We'll uncomment this in a future release when we're confident this release process works. #