Skip to content

Commit

Permalink
Add build for arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 21, 2023
1 parent 8062c8b commit eb1948f
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,57 @@
version: 2.1

jobs:
build-aarch64:
machine:
image: ubuntu-2004:202101-01
resource_class: arm.medium
steps:
- run: uname -a

- checkout
- run:
name: Update OS
command: |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y cmake ninja-build gcc-11 g++-11 clang-14
sudo rm -rf /var/lib/apt/lists/*
- run:
name: Check versions
command: |
g++ --version
cmake --version
- run:
name: Build Classic
command: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_WERROR=OFF
ninja -j1
cp -r bin /tmp
- store_artifacts:
path: /tmp/bin

build:
docker:
- image: cimg/base:edge
steps:
- checkout
- run:
name: Update OS
command: "sudo apt-get update && sudo apt-get install -y && sudo rm -rf /var/lib/apt/lists/*"
command: |
sudo apt-get update
sudo apt-get install -y
sudo rm -rf /var/lib/apt/lists/*
- run:
name: Install CMake&Ninja
command: 'sudo apt-get update && sudo apt-get install -y cmake ninja-build'
command: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build
- run:
name: Check versions
Expand All @@ -36,3 +75,4 @@ workflows:
build-workflow:
jobs:
- build
- build-aarch64

0 comments on commit eb1948f

Please sign in to comment.