rink-rs/.github/workflows/build.yml
Tiffany Bennett 492da8cfca
Add release build action (#83)
Create build artifacts for multiple platforms using Github Actions
2020-11-07 17:51:46 -08:00

36 lines
850 B
YAML

name: Build Release Binaries
on:
release:
types: [created]
push:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
input-name: rink
artifact-name: Rink CLI - Linux
- os: macos-latest
input-name: rink
artifact-name: Rink CLI - macOS
- os: windows-latest
input-name: rink.exe
artifact-name: Rink CLI - Windows
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --verbose
- name: Upload Binary
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.config.artifact-name }}
path: target/release/${{ matrix.config.input-name }}