Skip to content

Commit

Permalink
[CI] Enable ARM64 build in CI (#2699)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored Jun 19, 2024
1 parent 595801b commit aff26ac
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,37 @@ on:
branches: [ main ]

jobs:
arm64_test:
name: CMake test arm64 (with modern protobuf,grpc and abseil)
runs-on: actuated-arm64-4cpu-16gb
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: setup
env:
PROTOBUF_VERSION: '23.3'
ABSEIL_CPP_VERSION: '20230125.3'
CXX_STANDARD: '14'
CC: /usr/bin/gcc-10
CXX: /usr/bin/g++-10
run: |
sudo -E ./ci/setup_gcc10.sh
sudo -E ./ci/setup_cmake.sh
sudo -E ./ci/setup_ci_environment.sh
sudo -E ./ci/setup_googletest.sh
sudo -E ./ci/install_abseil.sh
sudo -E ./ci/install_protobuf.sh
- name: run otlp exporter tests
env:
CC: /usr/bin/gcc-10
CXX: /usr/bin/g++-10
WITH_ABSEIL: 'ON'
CXX_STANDARD: '14'
run: |
sudo -E ./ci/setup_grpc.sh -m -p protobuf -p abseil-cpp
./ci/do_ci.sh cmake.exporter.otprotocol.test
cmake_test:
name: CMake test (without otlp-exporter)
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions ci/setup_cmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

set -e
apt-get update
apt-get install --no-install-recommends --no-install-suggests -y \
cmake
10 changes: 10 additions & 0 deletions ci/setup_gcc10.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

set -e
apt-get update
apt-get install --no-install-recommends --no-install-suggests -y \
g++-10 \
gcc-10

0 comments on commit aff26ac

Please sign in to comment.