Skip to content

Commit eabbb48

Browse files
committed
AWN-42236 Added awnmaster github actions internal build
1 parent 0a66364 commit eabbb48

File tree

6 files changed

+80
-22
lines changed

6 files changed

+80
-22
lines changed

.github/workflows/default.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ awnmaster, master ]
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Go 1.x
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1
18+
id: go
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
23+
- name: Build and Test
24+
run: |
25+
make vet
26+
make test
27+
make build

.github/workflows/release.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches: [ awnmaster, master, actions ]
6+
paths:
7+
- 'VERSION'
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Go 1.x
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1
18+
id: go
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
23+
- name: Build tarballs
24+
run: |
25+
echo "::set-env name=_VERSION::`cat VERSION`"
26+
make vet
27+
make test
28+
make tarballs
29+
30+
# - name: Create Release
31+
# id: create_release
32+
# uses: actions/create-release@v1
33+
# env:
34+
# GITHUB_TOKEN: ${{ github.token }}
35+
# with:
36+
# tag_name: v${{ env._VERSION }}
37+
# release_name: Release ${{ env._VERSION }}
38+
# draft: false
39+
# prerelease: false
40+
41+
- name: Upload Release
42+
env:
43+
GITHUB_TOKEN: ${{ github.token }}
44+
run: |
45+
promu release .tarballs

.promu.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,5 @@ tarball:
2222
crossbuild:
2323
platforms:
2424
- linux/amd64
25-
- linux/386
2625
- darwin/amd64
27-
- darwin/386
2826
- windows/amd64
29-
- windows/386
30-
- freebsd/amd64
31-
- freebsd/386
32-
- openbsd/amd64
33-
- openbsd/386
34-
- netbsd/amd64
35-
- netbsd/386
36-
- dragonfly/amd64
37-
- linux/arm
38-
- linux/arm64
39-
- freebsd/arm
40-
- openbsd/arm
41-
- netbsd/arm
42-
- linux/ppc64
43-
- linux/ppc64le
44-
- linux/mips64
45-
- linux/mips64le

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.3 / 2020-08-24
2+
3+
* [BREAKING] removed a bunch of unneeded binary versions - AWN internal build
4+
15
## 1.1.0
26

37
repeating the breaking changes introduced in 1.1.0rc1:

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ tarball: promu
5454

5555
tarballs: promu
5656
@echo ">> building release tarballs"
57+
@$(PROMU) crossbuild
5758
@$(PROMU) crossbuild tarballs
5859
@echo ">> calculating release checksums"
5960
@$(PROMU) checksum $(BIN_DIR)/.tarballs
@@ -65,7 +66,7 @@ docker:
6566
promu:
6667
@GOOS=$(shell uname -s | tr A-Z a-z) \
6768
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
68-
$(GO) get -u github.com/prometheus/promu
69+
$(GO) get github.com/prometheus/promu
6970

7071
gometalinter: $(GOLINTER)
7172
@echo ">> linting code"
@@ -75,6 +76,6 @@ gometalinter: $(GOLINTER)
7576
$(GOPATH)/bin/gometalinter lint:
7677
@GOOS=$(shell uname -s | tr A-Z a-z) \
7778
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
78-
$(GO) get -u github.com/alecthomas/gometalinter
79+
$(GO) get github.com/alecthomas/gometalinter
7980

8081
.PHONY: all style format build test vet tarball docker promu $(GOPATH)/bin/gometalinter lint

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
2.0.3

0 commit comments

Comments
 (0)