summaryrefslogtreecommitdiffstats
path: root/src/seastar/.circleci/config.yml
blob: f9c88c5e10a6cfc052fb17143d6f71c54697255e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 2.1
jobs:
  build_and_test:
    parameters:
      compiler:
        description: C++ compiler to build with
        type: string
      standard:
        description: C++ standard to build with
        type: string
      mode:
        description: mode to build and test with
        type: string
    machine:
      image:  ubuntu-2004:202201-02
    resource_class: large
    steps:
      - checkout
      - run: git submodule sync
      - run: git submodule update --init
      - run: echo 'docker run --pids-limit -1 --security-opt seccomp=unconfined --network host --user "$(id -u):$(id -g)" --rm -v $PWD:$PWD -w $PWD  docker.io/scylladb/seastar-toolchain:2022-11-29 "$@"' > run; chmod +x run
      - run:
          command: |
            ./run ./configure.py --compiler << parameters.compiler >> --c++-standard << parameters.standard >>
            ./run ninja -C build/<< parameters.mode >>
            ./run ./test.py --mode=<< parameters.mode >>

workflows:
  version: 2
  build_and_test:
    jobs:
      - build_and_test:
          matrix:
            parameters:
              compiler: ["clang++-15", "g++-12"]
              standard: ["20", "17"]
              mode: ["dev", "debug", "release"]