From 4c2f69a0716e9301d7ef923d7aa64b78c685fdc6 Mon Sep 17 00:00:00 2001 From: Lloyd Date: Sat, 12 Dec 2020 19:18:55 +0900 Subject: [PATCH] Attempt windows. (#2) * Attempt windows. Signed-off-by: lloydmeta * friggin yaml Signed-off-by: lloydmeta * windows Signed-off-by: lloydmeta --- .github/workflows/release.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e922c79..da84dae 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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: