Skip to content

Commit 7130c68

Browse files
committed
Added custom build pipelines
1 parent 2f4f034 commit 7130c68

File tree

3 files changed

+77
-22
lines changed

3 files changed

+77
-22
lines changed

.github/workflows/build-master.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+

.github/workflows/image-build.yml

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

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
tags: [ "v*.*.*" ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.23.3'
20+
21+
- name: Test
22+
run: go test -v ./...
23+
24+
- name: Build
25+
run: go build -v ./...
26+
27+
- name: save binary
28+
uses: actions/[email protected]
29+
with:
30+
name: nflow-generator
31+
path: ./nflow-generator
32+
release:
33+
runs-on: ubuntu-latest
34+
needs: build
35+
steps:
36+
- name: setup go
37+
uses: actions/setup-go@v3
38+
with:
39+
go-version: '1.23.2'
40+
- name: get binaries from previous job
41+
uses: actions/[email protected]
42+
- name: display downloaded files
43+
run: ls -R
44+
- name: release with binaries
45+
uses: softprops/action-gh-release@v1
46+
with:
47+
generate_release_notes: true
48+
prerelease: ${{ endsWith(github.ref, '-alpha') || endsWith(github.ref, '-beta') }}
49+
files: "binaries/nflow-generator"

0 commit comments

Comments
 (0)