release: 1.77.3 #215
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Build | |
on: | |
push: | |
branches: | |
- release/** | |
jobs: | |
linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- arch: i686 | |
target: i686-unknown-linux-musl | |
container: i686-musl | |
- arch: x86_64 | |
target: x86_64-unknown-linux-musl | |
container: x86_64-musl | |
- arch: armv7 | |
target: armv7-unknown-linux-musleabi | |
container: armv7-musleabi | |
- arch: aarch64 | |
target: aarch64-unknown-linux-musl | |
container: aarch64-musl | |
name: Linux ${{ matrix.arch }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build in Docker | |
run: scripts/build-in-docker.sh | |
env: | |
TARGET: ${{ matrix.target }} | |
DOCKER_TAG: ${{ matrix.container }} | |
- name: Rename Binary | |
run: mv target/*/release/sentry-cli sentry-cli-Linux-${{ matrix.arch }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
path: sentry-cli-Linux-${{ matrix.arch }} | |
macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- arch: x86_64 | |
target: x86_64-apple-darwin | |
- arch: arm64 | |
target: aarch64-apple-darwin | |
name: macOS ${{ matrix.arch }} | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
- name: Run Cargo Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --target=${{ matrix.target }} --release --locked | |
- name: Rename Binary | |
run: mv target/${{ matrix.target }}/release/sentry-cli sentry-cli-Darwin-${{ matrix.arch }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
path: sentry-cli-Darwin-${{ matrix.arch }} | |
macos_universal: | |
needs: macos | |
name: macOS universal | |
runs-on: macos-latest | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
- name: Link universal binary | |
run: lipo -create -output sentry-cli-Darwin-universal sentry-cli-Darwin-x86_64 sentry-cli-Darwin-arm64 | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
path: sentry-cli-Darwin-universal | |
windows: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [i686, x86_64] | |
name: Windows ${{ matrix.arch }} | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable-${{ matrix.arch }}-pc-windows-msvc | |
profile: minimal | |
override: true | |
- name: Run Cargo Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --locked | |
- name: Rename Binary | |
run: mv target/release/sentry-cli.exe sentry-cli-Windows-${{ matrix.arch }}.exe | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
path: sentry-cli-Windows-${{ matrix.arch }}.exe | |
node: | |
name: NPM Package | |
runs-on: ubuntu-latest | |
needs: [linux, macos, macos_universal, windows] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 8.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 8.x | |
- name: Download compiled binaries | |
uses: actions/download-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
- name: Calculate and store checksums | |
shell: bash | |
run: | | |
sha256sum sentry-cli-* | awk '{printf("%s=%s\n", $2, $1)}' > checksums.txt | |
cat checksums.txt | |
- run: npm pack | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.sha }} | |
path: | | |
*.tgz | |
sentry_cli-placeholder.tar.gz | |
sentry_cli-placeholder.whl |