Add release build action (#83)

Create build artifacts for multiple platforms using Github Actions
This commit is contained in:
Tiffany Bennett 2020-11-07 17:51:46 -08:00 committed by GitHub
parent e9561ded3d
commit 492da8cfca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

36
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,36 @@
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 }}

View file

@ -1,4 +1,4 @@
name: Rust
name: Checks
on:
push: