kind: pipeline type: docker name: linux_amd64 platform: os: linux arch: amd64 workspace: path: /opt services: - name: docker image: docker:dind privileged: true steps: - name: setup_image image: docker:latest depends_on: - docker commands: - until docker info; do echo "Waiting for Docker daemon..."; sleep 1; done - docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 . - name: setup_conan image: ubuntu_amd64 environment: CONAN_REVISIONS_ENABLED: "1" commands: - . /opt/venv/bin/activate - pip install conan==2.5.0 - name: echo_info image: ubuntu_amd64 commands: - pip --version - python --version - conan --version - gcc --version - g++ --version - clang --version - clang++ --version - clang-tidy --version - clang-format --version - name: build_gcc image: ubuntu_amd64 commands: - rm -rv ./build - export CC=$(which gcc) - export CXX=$(which g++) - conan profile detect - cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default) - conan install . --build=missing - conan build . - ./build/Release/modules/light/light - name: build_clang image: ubuntu_amd64 commands: - rm -rv ./build - export CC=$(which clang) - export CXX=$(which clang++) - conan profile detect - cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default) - conan install . --build=missing - conan build . - ./build/Release/modules/light/light - name: static_analysis image: ubuntu_amd64 commands: - echo "[TODO] Implement static analysis" - name: run_tests image: ubuntu_amd64 commands: - echp "[TODO] Implement tests" - name: report_coverage image: ubuntu_amd64 commands: - echp "[TODO] Implement coverage report"