Skip to content

Commit

Permalink
Break out find for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jssblck committed May 18, 2023
1 parent e095b0d commit 3ade6ec
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit 3ade6ec

Please sign in to comment.