From cae021a1002cd71836a54f39f62698b88b3d9e2b Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 9 Feb 2024 11:11:25 +0100 Subject: [PATCH] archutil: bake target and workflow for exits bins Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/archutil.yml | 45 ++++++++++++++++++++++++++++++++++ docker-bake.hcl | 7 ++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/archutil.yml diff --git a/.github/workflows/archutil.yml b/.github/workflows/archutil.yml new file mode 100644 index 0000000000000..3b4526bcb6f06 --- /dev/null +++ b/.github/workflows/archutil.yml @@ -0,0 +1,45 @@ +name: archutil + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + workflow_dispatch: + push: + branches: + - 'master' + - 'v[0-9]+.[0-9]+' + pull_request: + +env: + SETUP_BUILDX_VERSION: "latest" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" + DESTDIR: "./bin" + +jobs: + exits: + runs-on: ubuntu-22.04 + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} + buildkitd-flags: --debug + - + name: Generate exits + uses: docker/bake-action@v4 + with: + targets: archutil-exits + - + name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: archutil-exits + path: ${{ env.DESTDIR }}/* + if-no-files-found: error diff --git a/docker-bake.hcl b/docker-bake.hcl index 2a4bd270a5cc8..70fcfb374bea9 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -216,6 +216,13 @@ target "archutil" { output = ["./util/archutil"] } +target "archutil-exits" { + inherits = ["_common"] + dockerfile = "./hack/dockerfiles/archutil.Dockerfile" + target = "exits" + output = [bindir("archutil")] +} + target "shfmt" { inherits = ["_common"] dockerfile = "./hack/dockerfiles/shfmt.Dockerfile"