dependency updates #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*' | |
name: Create Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Go get | |
run: go get . | |
- name: Build Linux | |
if: runner.os == 'Linux' | |
run: go build -v -o dhtc-linux dhtc | |
- name: Build macOS | |
if: runner.os == 'macOS' | |
run: go build -v -o dhtc-macos dhtc | |
- name: Build Windows | |
if: runner.os == 'Windows' | |
run: go build -v -o dhtc-windows.exe dhtc | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: dhtc-* |