1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00

55 lines
1.2 KiB
YAML
Raw Normal View History

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2021-10-25 19:54:15 +02:00
go-version: ^1.16
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Test & Vet
2020-11-23 18:26:52 -08:00
run: make test vet
- name: Build
run: |
2021-05-07 14:34:19 +00:00
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
2020-11-23 18:26:52 -08:00
- name: Install fpm
2020-11-23 18:30:01 -08:00
run: |
sudo apt-get update
sudo apt-get install -y rpm ruby ruby-dev
2020-11-23 18:31:34 -08:00
sudo gem install fpm
2020-11-23 18:26:52 -08:00
- name: Package
2021-05-07 14:34:19 +00:00
run: make package-deb-stayrtr package-rpm-stayrtr
2020-11-24 11:05:46 -08:00
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
retention-days: 14