Skip to content

build(deps): Bump h2 from 0.3.17 to 0.3.24 #38

build(deps): Bump h2 from 0.3.17 to 0.3.24

build(deps): Bump h2 from 0.3.17 to 0.3.24 #38

Workflow file for this run

name: Build binary
on:
push:
tags:
- v**
pull_request:
jobs:
build:
strategy:
fail-fast: true
matrix:
job:
- { os: macos-latest }
- { os: ubuntu-latest }
- { os: windows-latest }
name: Build
runs-on: ${{ matrix.job.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Running test
uses: actions-rs/cargo@v1
with:
command: test
args: --release
- name: Rename binary
id: rename
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
BIN='github-webhook-notification_linux_amd64'
mv target/release/github-webhook-notification target/release/$BIN
elif [ "$RUNNER_OS" == "macOS" ]; then
BIN='github-webhook-notification_darwin_amd64'
mv target/release/github-webhook-notification target/release/$BIN
else
BIN='github-webhook-notification_windows_amd64.exe'
mv target/release/github-webhook-notification.exe target/release/$BIN
fi
echo "::set-output name=bin::target/release/$BIN"
- uses: actions/upload-artifact@v2
with:
name: artifact
path: |
target/release/github-webhook-notification_*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ steps.rename.outputs.bin }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}