Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MCOfficer committed Feb 19, 2022
1 parent 83e6190 commit 99a21c1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build
on:
push:

jobs:
windows:
runs-on: windows-latest
steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v2
- name: Build binary
run: cargo build --verbose --release
- name: Strip binary
run: strip target/release/gibfonts.exe
- name: Archive binary
uses: actions/upload-artifact@v1
with:
name: gibfonts.exe
path: target/release/gibfonts.exe
- name: Release binary
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
target/release/gibfonts.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 99a21c1

Please sign in to comment.