sacrebleu-dns/.github/workflows/go.yml

45 lines
893 B
YAML
Raw Normal View History

2020-12-13 23:37:56 +01:00
name: Go
on:
push:
branches: [ main ]
2020-12-13 23:37:56 +01:00
pull_request:
branches: [ main ]
2020-12-13 23:37:56 +01:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Check out code into the Go module directory
uses: actions/checkout@v2
2020-12-14 01:21:00 +01:00
with:
fetch-depth: '0'
- name: Build
2020-12-13 23:37:56 +01:00
run: |
2020-12-14 01:21:00 +01:00
GOOS=linux make build
GOOS=darwin make build
GOOS=windows EXTENSION=.exe make build
- 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 package-rpm
2020-12-13 23:37:56 +01:00
2020-12-14 01:21:00 +01:00
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
retention-days: 14