mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
492da8cfca
Create build artifacts for multiple platforms using Github Actions
36 lines
850 B
YAML
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 }}
|