mirror of
https://github.com/bgp/stayrtr.git
synced 2024-05-06 15:54:54 +00:00
Build with stable and specified go version
This commit is contained in:
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
@ -12,13 +12,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set latest stable go version
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: ^1.19
|
go-version: 'stable'
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
|
||||||
|
2
.github/workflows/docker-tag.yml
vendored
2
.github/workflows/docker-tag.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check Out Repo
|
- name: Check Out Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get short SHA from commit hash
|
- name: Get short SHA from commit hash
|
||||||
id: tagcalc
|
id: tagcalc
|
||||||
|
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
||||||
|
|
||||||
- name: Check Out Repo
|
- name: Check Out Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
@ -12,19 +12,19 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: ^1.19
|
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
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
|
- name: Test & Vet
|
||||||
run: make test vet
|
run: make test vet
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux make build-stayrtr
|
GOOS=linux make build-stayrtr
|
||||||
@ -36,13 +36,13 @@ jobs:
|
|||||||
GOOS=linux make build-rtrmon
|
GOOS=linux make build-rtrmon
|
||||||
GOOS=darwin make build-rtrmon
|
GOOS=darwin make build-rtrmon
|
||||||
GOOS=windows EXTENSION=.exe make build-rtrmon
|
GOOS=windows EXTENSION=.exe make build-rtrmon
|
||||||
|
|
||||||
- name: Install fpm
|
- name: Install fpm
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y rpm ruby ruby-dev
|
sudo apt-get install -y rpm ruby ruby-dev
|
||||||
sudo gem install fpm
|
sudo gem install fpm
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: make package-deb-stayrtr package-rpm-stayrtr
|
run: make package-deb-stayrtr package-rpm-stayrtr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user