diff --git a/.github/workflows/archutil.yml b/.github/workflows/archutil.yml new file mode 100644 index 0000000000000..9ff8e11c311d0 --- /dev/null +++ b/.github/workflows/archutil.yml @@ -0,0 +1,59 @@ +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: Prepare + run: | + sudo apt-get update + sudo apt-get install -y cpuid + - + name: Checkout + uses: actions/checkout@v4 + - + name: Show cpuinfo + run: | + cat /proc/cpuinfo + - + name: Show cpuid + run: | + cpuid + - + 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 + provenance: false + - + 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"