mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Add release build action (#83)
Create build artifacts for multiple platforms using Github Actions
This commit is contained in:
parent
e9561ded3d
commit
492da8cfca
2 changed files with 37 additions and 1 deletions
36
.github/workflows/build.yml
vendored
Normal file
36
.github/workflows/build.yml
vendored
Normal 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 }}
|
|
@ -1,4 +1,4 @@
|
|||
name: Rust
|
||||
name: Checks
|
||||
|
||||
on:
|
||||
push:
|
Loading…
Reference in a new issue