From 44bcfa1cb3dc2ed4ce6f1f7898ad0ee5520208db Mon Sep 17 00:00:00 2001 From: Brandon Duffany Date: Wed, 21 Feb 2024 12:46:18 -0500 Subject: [PATCH] WIP linux-arm64 release --- .../build-linux-arm64-release-artifacts.yaml | 61 +++++++++++++++++++ .../build-linux-github-release-artifacts.yaml | 2 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-linux-arm64-release-artifacts.yaml diff --git a/.github/workflows/build-linux-arm64-release-artifacts.yaml b/.github/workflows/build-linux-arm64-release-artifacts.yaml new file mode 100644 index 000000000000..17b6a814600b --- /dev/null +++ b/.github/workflows/build-linux-arm64-release-artifacts.yaml @@ -0,0 +1,61 @@ +name: "Build Linux arm64 Github Release Artifacts" + +on: + # DO NOT SUBMIT + pull_request: + branches: + - master + + workflow_dispatch: + inputs: + release_branch: + description: "Git branch to checkout." + required: true + default: "master" + type: string + version_tag: + description: "Version to tag release artifacts." + required: true + type: string + workflow_call: + inputs: + release_branch: + description: "Git branch to checkout." + required: true + type: string + version_tag: + description: "Version to tag release artifacts." + required: true + type: string + +jobs: + build: + runs-on: ubuntu-22.04-16cpu-arm64 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + # DO NOT SUBMIT + ref: bb_release_20240214_182900 + # ref: ${{ inputs.release_branch }} + # We need to fetch git tags to obtain the latest version tag to report + # the version of the running binary. + fetch-depth: 0 + + - name: Install bazelisk + run: | + curl -L --output bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-arm64 + sudo mv bazelisk /usr/bin/bazelisk + + - name: Build and Upload Artifacts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + uname -a + bazelisk build --config=release --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} //server/cmd/buildbuddy:buildbuddy //enterprise/server/cmd/server:buildbuddy //enterprise/server/cmd/executor:executor + cp bazel-bin/server/cmd/**/**/buildbuddy buildbuddy-linux-arm64 + cp bazel-bin/enterprise/server/cmd/**/**/buildbuddy buildbuddy-enterprise-linux-arm64 + cp bazel-bin/enterprise/server/cmd/**/**/executor executor-enterprise-linux-arm64 + # DO NOT SUBMIT + # gh release upload v2.40.1 buildbuddy-linux-arm64 buildbuddy-enterprise-linux-arm64 executor-enterprise-linux-arm64 --clobber + # gh release upload ${{ inputs.version_tag }} buildbuddy-linux-arm64 buildbuddy-enterprise-linux-arm64 executor-enterprise-linux-arm64 --clobber diff --git a/.github/workflows/build-linux-github-release-artifacts.yaml b/.github/workflows/build-linux-github-release-artifacts.yaml index 28fd26865dd9..d314fb290dd4 100644 --- a/.github/workflows/build-linux-github-release-artifacts.yaml +++ b/.github/workflows/build-linux-github-release-artifacts.yaml @@ -1,4 +1,4 @@ -name: "Build Linux Github Release Artifacts" +name: "Build Linux amd64 Github Release Artifacts" on: workflow_dispatch: