From 08cc7043cfe838e754b975e8a76f875dfc40072c Mon Sep 17 00:00:00 2001 From: shereenH Date: Thu, 21 Jul 2022 14:22:38 +0300 Subject: [PATCH] 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. --- .github/workflows/release-hp-mc-generator.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release-hp-mc-generator.yml diff --git a/.github/workflows/release-hp-mc-generator.yml b/.github/workflows/release-hp-mc-generator.yml new file mode 100644 index 000000000..5224d5f83 --- /dev/null +++ b/.github/workflows/release-hp-mc-generator.yml @@ -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