Skip to content

Commit

Permalink
Build release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithvi Shahi authored and ninegua committed Jun 22, 2021
1 parent 0baa53c commit c0ccedc
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
tags:
- '*'

jobs:
linux-x86_64-static:
name: Release binary for Linux x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gmiam/rust-musl-action@master
with:
args: cargo build --target x86_64-unknown-linux-musl --release --locked
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/x86_64-unknown-linux-musl/release/quill
asset_name: quill-linux-x86_64
tag: ${{ github.ref }}

macos-x86_64:
name: Release binary for MacOS x86_64
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: build
run: make release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/quill
asset_name: quill-macos-x86_64
tag: ${{ github.ref }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
cargo build

release:
cargo build --release
cargo build --release --locked

check:
cargo check --all --all-targets --all-features --tests
Expand Down

0 comments on commit c0ccedc

Please sign in to comment.