Skip to content

Commit df88367

Browse files
authored
Merge pull request #125 from blacknon/0.3.14
0.3.14
2 parents 5c3424c + 70840b1 commit df88367

File tree

21 files changed

+2543
-1662
lines changed

21 files changed

+2543
-1662
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
# - https://github.com/motemen/hwatch/blob/97d3745dcc8931a1d75217573d5ca60705be632f/.github/workflows/release.yml
77
# - https://github.com/greymd/teip/blob/master/.github/workflows/release.yml
88

9-
109
name: Release Job.
1110

1211
on:
1312
push:
1413
branches:
1514
- master
1615
paths-ignore:
17-
- '**/README.md'
16+
- "**/README.md"
1817

1918
jobs:
2019
# build rust binary
@@ -40,9 +39,9 @@ jobs:
4039
- target: aarch64-apple-darwin
4140
os: macos-latest
4241
ext: tar.gz
43-
# - target: x86_64-pc-windows-gnu
44-
# os: ubuntu-latest
45-
# ext: zip
42+
- target: x86_64-pc-windows-gnu
43+
os: ubuntu-latest
44+
ext: zip
4645
runs-on: ${{ matrix.os }}
4746
steps:
4847
- uses: actions/checkout@v1
@@ -105,6 +104,12 @@ jobs:
105104
perl -i -pe s/___VERSION___/${{ steps.package_version.outputs.version }}/ ./package/.tar2package.yml
106105
tar czvf "$_TAR" -C "$PWD/package" completion bin man .tar2package.yml
107106
107+
- name: Create package file
108+
if: ${{ (matrix.ext == 'zip') }}
109+
run: |
110+
_ZIP=hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.zip
111+
7z a "$_ZIP" target/${{ matrix.target }}/release/hwatch.exe
112+
108113
# use: https://github.com/greymd/tar2package
109114
- name: Build rpm
110115
id: rpm
@@ -154,6 +159,13 @@ jobs:
154159
name: build-${{ matrix.target }}
155160
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.tar.gz
156161

162+
- name: Upload artifact
163+
if: matrix.ext == 'zip'
164+
uses: actions/upload-artifact@v1
165+
with:
166+
name: build-${{ matrix.target }}
167+
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.zip
168+
157169
# create package release
158170
create-release:
159171
needs:
@@ -211,7 +223,9 @@ jobs:
211223
- target: aarch64-apple-darwin
212224
os: macos-latest
213225
ext: tar.gz
214-
# - x86_64-pc-windows-gnu
226+
- target: x86_64-pc-windows-gnu
227+
os: ubuntu-latest
228+
ext: zip
215229
needs: [create-release]
216230
runs-on: ubuntu-latest
217231
steps:

0 commit comments

Comments
 (0)