Skip to content

Commit c26536c

Browse files
authored
Use yaml syntax for workflows (#39)
Use yaml syntax for workflows
2 parents 68cda80 + d0b8c20 commit c26536c

File tree

3 files changed

+49
-63
lines changed

3 files changed

+49
-63
lines changed

.github/main.workflow

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on: push
2+
name: Push
3+
jobs:
4+
checks:
5+
name: checks
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- uses: actions/checkout@master
9+
10+
- name: Run all checks
11+
uses: cedrickring/golang-action@1.3.0
12+
env:
13+
GO111MODULE: "on"

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on: release
2+
name: Release
3+
jobs:
4+
build_and_release:
5+
name: build and release binaries
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- uses: actions/checkout@master
9+
10+
- name: Build all binaries
11+
uses: cedrickring/golang-action@1.3.0
12+
env:
13+
GO111MODULE: "on"
14+
with:
15+
args: make build-all
16+
17+
- name: Upload windows release
18+
uses: JasonEtco/upload-to-release@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
args: out/kbuild_windows_amd64.exe application/octet-stream
23+
24+
- name: Upload linux release
25+
uses: JasonEtco/upload-to-release@master
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
args: out/kbuild_linux_amd64 application/octet-stream
30+
31+
- name: Upload darwin release
32+
uses: JasonEtco/upload-to-release@master
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
args: out/kbuild_darwin_amd64 application/octet-stream

0 commit comments

Comments
 (0)