Skip to content

Commit

Permalink
build(ci): Public MacOS x86_64 binaries to github releases (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkotsopoulossc authored Oct 12, 2021
1 parent 328a681 commit e67a0c1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- release/**

jobs:
binary:
name: Build Binary
linux:
name: Build Binary on Linux
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -47,6 +47,48 @@ jobs:
name: ${{ github.sha }}
path: build/*

mac:
name: Build Binary on MacOS
runs-on: macos-10.15

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo build
uses: actions-rs/cargo@v1
env:
# Generates separate debug symbol files alongside release builds
CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO: packed
with:
command: build
args: --all --release --locked

- name: Archive debug info
run: |
mkdir -p build
# Move all binaries to output directory
mv target/release/symbolicator build/symbolicator-Darwin-x86_64
mv target/release/wasm-split build/wasm-split-Darwin-x86_64
mv target/release/symsorter build/symsorter-Darwin-x86_64
# Recursive zip the debug symbol folder and place the output in the output directory
cd target/release
zip -r ../../build/symbolicator-Darwin-x86_64-debug.zip symbolicator.dSYM
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: build/*

docs:
name: Build Docs
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
### Tools

- `symsorter` no longer emits files with empty debug identifiers. ([#469](https://github.com/getsentry/symbolicator/pull/469))
- MacOS x86_64 builds of symbolicator, symsorter and wasm-split can be downloaded from GitHub releases now. ([#565](https://github.com/getsentry/symbolicator/pull/565))

### Internal

Expand Down

0 comments on commit e67a0c1

Please sign in to comment.