version: 2.1

jobs:
  build-on-gcc:
    machine:
      image: ubuntu-2004:202101-01
    resource_class: arm.medium
    steps:
      - checkout
      - run: uname -a
      - run: sudo apt update
      - run: sudo apt install -y g++ cmake language-pack-ja ninja-build libpcre2-8-0 libpcre2-dev systemd-sysv
      - run: sh tools/scripts/run_all_test.sh g++
  build-on-clang:
    machine:
      image: ubuntu-2004:202101-01
    resource_class: arm.medium
    steps:
      - checkout
      - run: uname -a
      - run: sudo apt update
      - run: sudo apt install -y g++ clang cmake language-pack-ja ninja-build libpcre2-8-0 libpcre2-dev systemd-sysv
      - run: sh tools/scripts/run_all_test.sh clang++
  build-asan:
    machine:
      image: ubuntu-2004:202101-01
    resource_class: arm.medium
    steps:
      - checkout
      - run: uname -a
      - run: sudo apt update
      - run: sudo apt install -y g++ clang cmake language-pack-ja ninja-build libpcre2-8-0 libpcre2-dev systemd-sysv
      - run: sh tools/scripts/asan.sh
workflows:
  build:
    jobs:
      - build-on-gcc
      - build-on-clang
      - build-asan

version: 2.1

jobs:
  build-on-gcc:
    machine:
      image: ubuntu-2004:202101-01
    resource_class: arm.medium
    steps:
      - checkout
      - run: uname -a
      - run: sudo apt update
      - run: sudo apt install -y g++ cmake language-pack-ja ninja-build libpcre2-8-0 libpcre2-dev systemd-sysv
      - run: sh tools/scripts/run_all_test.sh g++
  build-on-clang:
    machine:
      image: ubuntu-2004:202101-01
    resource_class: arm.medium
    steps:
      - checkout
      - run: uname -a
      - run: sudo apt update
      - run: sudo apt install -y g++ clang cmake language-pack-ja ninja-build libpcre2-8-0 libpcre2-dev systemd-sysv
      - run: sh tools/scripts/run_all_test.sh clang++
workflows:
  build:
    jobs:
      - build-on-gcc
      - build-on-clang

Revert "test aarch64 asan" due to huge running time in CircleCI
Revert "test aarch64 asan" due to huge running time in CircleCI

This reverts commit 8cc07a2d46af93a33e3d37cbcdc6020de45553d0.
