Skip to content

Commit

Permalink
Build with static CRT, add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 21, 2020
1 parent 6317f99 commit 0c33a21
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-Ctarget-feature=+crt-static"]
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
release:
types: [created]

jobs:
windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1

- name: Build release binary
run: cargo build --verbose --locked --release

- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: tarmac-win64
path: target/release/tarmac.exe

macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v1

- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

- name: Build release binary
run: |
source $HOME/.cargo/env
cargo build --verbose --locked --release
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: tarmac-macos
path: target/release/tarmac

0 comments on commit 0c33a21

Please sign in to comment.