Skip to content

Commit 9ccd3c5

Browse files
authored
Added build pipeline
1 parent 2f4f034 commit 9ccd3c5

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/go.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: '1.23.3'
22+
23+
- name: Test
24+
run: go test -v ./...
25+
26+
- name: Build
27+
run: go build -v ./...
28+
29+
- name: save binary
30+
uses: actions/[email protected]
31+
with:
32+
name: nflow-generator
33+
path: ./binaries/
34+
overwrite: true
35+
release:
36+
runs-on: ubuntu-latest
37+
needs: build
38+
steps:
39+
- name: setup go
40+
uses: actions/setup-go@v3
41+
with:
42+
go-version: '1.23.2'
43+
- name: get binaries from previous job
44+
uses: actions/[email protected]
45+
- name: display downloaded files
46+
run: ls -R
47+
- name: release with binaries
48+
uses: softprops/action-gh-release@v1
49+
with:
50+
generate_release_notes: true
51+
prerelease: ${{ endsWith(github.ref, '-alpha') || endsWith(github.ref, '-beta') }}
52+
files: "binaries/nflow-generator"

0 commit comments

Comments
 (0)