-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh actions: add workflow to build tool
Add new workflow to build and release binary for tools/hugepages-machineconfig-generator to enable using it externally.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
name: Build hugepages-machineconfig-generator tool binary | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup golang | ||
uses: actions/setup-go@v2 | ||
id: go | ||
with: | ||
go-version: 1.17 | ||
build: | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: build machineconfig generator tool for hugepages | ||
run: make dist-hugepages-mc-genarator | ||
|
||
- name: release the tool binary | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: build/_output/bin/hugepages-machineconfig-generator |