Skip to content

Commit

Permalink
Attempt windows. (#2)
Browse files Browse the repository at this point in the history
* Attempt windows.

Signed-off-by: lloydmeta <[email protected]>

* friggin yaml

Signed-off-by: lloydmeta <[email protected]>

* windows

Signed-off-by: lloydmeta <[email protected]>
  • Loading branch information
lloydmeta authored Dec 12, 2020
1 parent f6b2402 commit 4c2f69a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
Expand All @@ -35,12 +37,18 @@ jobs:
args: --release --target ${{ matrix.target }}

- name: Strip the binary
if: "!contains(matrix.os, 'windows')"
run: strip target/${{ matrix.target }}/release/jhhi

- name: Tar the binary
- name: Tar the binary (nix)
if: "!contains(matrix.os, 'windows')"
run: tar -czvf jhhi-${{ matrix.target }}.tar.gz target/${{ matrix.target }}/release/jhhi

- name: Upload to release
- name: Tar the binary (windows)
if: contains(matrix.os, 'windows')
run: tar.exe -czvf jhhi-${{ matrix.target }}.tar.gz target\${{ matrix.target }}\release\jhhi.exe

- name: Upload to release (nix)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down

0 comments on commit 4c2f69a

Please sign in to comment.