Skip to content

Commit 35e46a1

Browse files
Merge pull request #927 from shajmakh/gh-action
gh actions: add workflow to build tool
2 parents 75dac7e + 08cc704 commit 35e46a1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: Build hugepages-machineconfig-generator tool binary
3+
4+
on:
5+
workflow_dispatch:
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
setup:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout sources
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: setup golang
21+
uses: actions/setup-go@v2
22+
id: go
23+
with:
24+
go-version: 1.17
25+
build:
26+
needs: [setup]
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: checkout sources
30+
uses: actions/checkout@v3
31+
with:
32+
fetch-depth: 0
33+
34+
- name: build machineconfig generator tool for hugepages
35+
run: make dist-hugepages-mc-genarator
36+
37+
- name: release the tool binary
38+
uses: ncipollo/release-action@v1
39+
with:
40+
artifacts: build/_output/bin/hugepages-machineconfig-generator

0 commit comments

Comments
 (0)