Store hash before decoding, do not parse broken file twice #243
Workflow file for this run
This file contains 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
name: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Set up go version from go.mod | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: 'go.mod' | |
- name: Test & Vet | |
run: make test vet | |
- name: Build | |
run: | | |
GOOS=linux make build-stayrtr | |
GOOS=darwin make build-stayrtr | |
GOOS=windows EXTENSION=.exe make build-stayrtr | |
GOOS=linux make build-rtrdump | |
GOOS=darwin make build-rtrdump | |
GOOS=windows EXTENSION=.exe make build-rtrdump | |
GOOS=linux make build-rtrmon | |
GOOS=darwin make build-rtrmon | |
GOOS=windows EXTENSION=.exe make build-rtrmon | |
- name: Install fpm | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y rpm ruby ruby-dev | |
sudo gem install fpm | |
- name: Package | |
run: make package-deb-stayrtr package-rpm-stayrtr | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: dist/* | |
retention-days: 14 |