Skip to content

Commit

Permalink
Merge pull request #3356 from cloudflare/dlapid/linux_arm64_runner
Browse files Browse the repository at this point in the history
Add arm64 linux runner configurations
  • Loading branch information
danlapid authored Jan 20, 2025
2 parents 5e538f6 + 3539873 commit 00aef63
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# ends up with a larger cache at the end when starting with an available cache entry,
# resulting in a snowballing cache size and cache download/upload times.
- name: Setup Linux
if: inputs.os_name == 'linux'
if: inputs.os_name == 'linux' || inputs.os_name == 'linux-arm'
# Install dependencies, including clang through the LLVM APT repository. We drop the
# install step so we can install just the packages we need.
# libunwind, libc++abi1 and libc++1 should be automatically installed as dependencies of
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, macos-15, windows-2022]
os: [ubuntu-22.04, ubuntu-22.04-arm, macos-15, windows-2022]
target-arch: [ X64 ]
include:
- os-name: linux
os: ubuntu-22.04
bazel-config: release_linux
- os-name: linux-arm64
os: ubuntu-22.04-arm
bazel-config: release_linux
target-arch: ARM64
# Based on runner availability, we build both Apple Silicon and (cross-compiled) x86
# release binaries on the macos-15 runner.
- os-name: macOS-x64
Expand Down Expand Up @@ -150,6 +154,9 @@ jobs:
include:
- arch: linux-64
name: Linux-X64
- arch: linux-arm64
name: Linux-ARM64
cpu: ARM64
- arch: darwin-64
name: macOS-X64
- arch: darwin-arm64
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
os:
[
{ name : linux, image : ubuntu-22.04 },
{ name : linux-arm, image : ubuntu-22.04-arm },
{ name : macOS, image : macos-15 },
{ name : windows, image : windows-2025 }
]
Expand Down
4 changes: 4 additions & 0 deletions build/ci.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ build:ci-linux-common --action_env=CC=/usr/lib/llvm-16/bin/clang --action_env=CX
build:ci-linux-common --host_action_env=CC=/usr/lib/llvm-16/bin/clang --host_action_env=CXX=/usr/lib/llvm-16/bin/clang++

build:ci-linux --config=ci-linux-common
build:ci-linux-arm --config=ci-linux

build:ci-linux-debug --config=ci-linux-common --config=ci-limit-storage
build:ci-linux-debug --config=debug --config=rust-debug

build:ci-linux-arm-debug --config=ci-linux-debug

build:ci-linux-asan --config=ci-linux-common --config=ci-limit-storage
# we're really struggling to fit asan build into worker disk size
# having asan without symbols is better than none
build:ci-linux-asan --config=asan --copt="-g0" --strip=always
build:ci-linux-arm-asan --config=ci-linux-asan


# Unlike the bazel Unix toolchain the macOS toolchain sets "-O0 -DDEBUG" for fastbuild by
Expand Down

0 comments on commit 00aef63

Please sign in to comment.