Skip to content

Commit

Permalink
Merge pull request #125 from blacknon/0.3.14
Browse files Browse the repository at this point in the history
0.3.14
  • Loading branch information
blacknon committed Jun 9, 2024
2 parents 5c3424c + 70840b1 commit df88367
Show file tree
Hide file tree
Showing 21 changed files with 2,543 additions and 1,662 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
# - https://github.com/motemen/hwatch/blob/97d3745dcc8931a1d75217573d5ca60705be632f/.github/workflows/release.yml
# - https://github.com/greymd/teip/blob/master/.github/workflows/release.yml


name: Release Job.

on:
push:
branches:
- master
paths-ignore:
- '**/README.md'
- "**/README.md"

jobs:
# build rust binary
Expand All @@ -40,9 +39,9 @@ jobs:
- target: aarch64-apple-darwin
os: macos-latest
ext: tar.gz
# - target: x86_64-pc-windows-gnu
# os: ubuntu-latest
# ext: zip
- target: x86_64-pc-windows-gnu
os: ubuntu-latest
ext: zip
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -105,6 +104,12 @@ jobs:
perl -i -pe s/___VERSION___/${{ steps.package_version.outputs.version }}/ ./package/.tar2package.yml
tar czvf "$_TAR" -C "$PWD/package" completion bin man .tar2package.yml
- name: Create package file
if: ${{ (matrix.ext == 'zip') }}
run: |
_ZIP=hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.zip
7z a "$_ZIP" target/${{ matrix.target }}/release/hwatch.exe
# use: https://github.com/greymd/tar2package
- name: Build rpm
id: rpm
Expand Down Expand Up @@ -154,6 +159,13 @@ jobs:
name: build-${{ matrix.target }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.tar.gz

- name: Upload artifact
if: matrix.ext == 'zip'
uses: actions/upload-artifact@v1
with:
name: build-${{ matrix.target }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.zip

# create package release
create-release:
needs:
Expand Down Expand Up @@ -211,7 +223,9 @@ jobs:
- target: aarch64-apple-darwin
os: macos-latest
ext: tar.gz
# - x86_64-pc-windows-gnu
- target: x86_64-pc-windows-gnu
os: ubuntu-latest
ext: zip
needs: [create-release]
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit df88367

Please sign in to comment.