Skip to content

Commit

Permalink
gh actions: add workflow to build tool
Browse files Browse the repository at this point in the history
Add new workflow to build and release binary for tools/hugepages-machineconfig-generator to enable using it externally.
  • Loading branch information
shajmakh committed Jul 21, 2022
1 parent 75dac7e commit 08cc704
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release-hp-mc-generator.yml
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

0 comments on commit 08cc704

Please sign in to comment.