Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Test CircleCI for ARM Builds #163

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@

version: 2.1

jobs:
arm_gcc:
parameters:
scheduler:
type: string
topology:
type: string
machine:
image: ubuntu-2204:2023.10.1
resource_class: arm.medium
environment:
CC: gcc-13
CXX: g++-13
steps:
- checkout
- run: |
sudo apt-add-repository -y 'ppa:ubuntu-toolchain-r/test'
sudo apt-get install -y gcc-13 g++-13
sudo apt-get install -y autoconf automake libtool
sudo apt-get install -y hwloc libhwloc-dev
- run: |
./autogen.sh
./configure --enable-picky --with-scheduler=<< parameters.scheduler >> --with-topology=<< parameters.topology >>
make -j2
- run:
command: timeout --foreground -k 10s 2m make check
no_output_timeout: 30s

arm_clang:
parameters:
scheduler:
type: string
topology:
type: string
machine:
image: ubuntu-2204:2023.10.1
resource_class: arm.medium
environment:
CC: clang-17
CXX: clang++-17
steps:
- checkout
- run: |
sudo apt-add-repository -y 'ppa:ubuntu-toolchain-r/test'
sudo apt-get install -y gcc-13 g++-13
sudo apt-get install -y autoconf automake libtool
sudo apt-get install -y hwloc libhwloc-dev
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository -y 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main'
sudo apt-get install -y clang-17
- run: |
./autogen.sh
./configure --enable-picky --with-scheduler=<< parameters.scheduler >> -with-topology=<< parameters.topology >>
make -j2
- run:
command: timeout --foreground -k 10s 2m make check
no_output_timeout: 30s

arm_sanitizers:
parameters:
scheduler:
type: string
topology:
type: string
sanitizer:
type: string
machine:
image: ubuntu-2204:2023.10.1
resource_class: arm.medium
environment:
CC: clang-17
CXX: clang++-17
CFLAGS: "-fsanitize=<< parameters.sanitizer >>"
CXXFLAGS: "-fsanitize=<< parameters.sanitizer >>"
LDFLAGS: "-fsanitize=<< parameters.sanitizer >>"
steps:
- checkout
- run: |
sudo apt-add-repository -y 'ppa:ubuntu-toolchain-r/test'
sudo apt-get install -y gcc-13 g++-13
sudo apt-get install -y autoconf automake libtool
sudo apt-get install -y hwloc libhwloc-dev
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository -y 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main'
sudo apt-get install -y clang-17
- run: |
./autogen.sh
./configure --enable-picky --with-scheduler=<< parameters.scheduler >> -with-topology=<< parameters.topology >>
make -j2
- run:
command: timeout --foreground -k 10s 4m make check
no_output_timeout: 30s

arm_acfl:
parameters:
scheduler:
type: string
topology:
type: string
machine:
image: ubuntu-2204:2023.10.1
resource_class: arm.medium
environment:
CC: armclang
CXX: armclang++
steps:
- checkout
- run: |
sudo apt-get update -y
sudo apt-get install -y autoconf automake libtool
sudo apt-get install -y hwloc libhwloc-dev
wget -O acfl.tar https://developer.arm.com/-/media/Files/downloads/hpc/arm-compiler-for-linux/23-10/arm-compiler-for-linux_23.10_Ubuntu-22.04_aarch64.tar
tar -vxf acfl.tar
./arm-compiler-for-linux_23.10_Ubuntu-22.04/arm-compiler-for-linux_23.10_Ubuntu-22.04.sh -a -f -s acfl
rm acfl.tar
sudo apt install -y ./acfl/gcc-12.2.0_Ubuntu-22.04.deb ./acfl/arm-linux-compiler-23.10_Ubuntu-22.04.deb
rm -rf acfl
export PATH=$PATH:/opt/arm/arm-linux-compiler-23.10_Ubuntu-22.04/bin
armclang -v
- run: |
export PATH=$PATH:/opt/arm/arm-linux-compiler-23.10_Ubuntu-22.04/bin
./autogen.sh
./configure --enable-picky --with-scheduler=<< parameters.scheduler >> -with-topology=<< parameters.topology >>
make -j2
- run:
command: |
export PATH=$PATH:/opt/arm/arm-linux-compiler-23.10_Ubuntu-22.04/bin
timeout --foreground -k 10s 4m make check
no_output_timeout: 30s

workflows:
build_and_test:
jobs:
- arm_gcc:
matrix:
parameters:
scheduler: [nemesis, sherwood, distrib]
topology: ['no', binders, hwloc]
- arm_clang:
matrix:
parameters:
scheduler: [nemesis, sherwood, distrib]
topology: ['no', binders, hwloc]
- arm_sanitizers:
matrix:
parameters:
scheduler: [nemesis, sherwood, distrib]
topology: ['no', binders, hwloc]
sanitizer: [address, memory, thread, undefined]
- arm_acfl:
matrix:
parameters:
scheduler: [nemesis, sherwood, distrib]
topology: ['no', binders, hwloc]

Loading