A docker container for building C++ projects with GCC10 that targets amd64. This is to build the repository at https://hub.docker.com/repository/docker/cblauvelt/cpp-builder-gcc10
| Package | Version |
|---|---|
| GCC | gcc (Ubuntu 10.5.0-1ubuntu1~22.04) 10.5.0 |
| CMake | cmake version 3.28.1 |
| Conan | Conan version 1.62.0 |
This container is meant to be used as a builder for github workflows. Below is a sample workflow configuation that uses cmake and conan.
name: C/C++ CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
container: cblauvelt/cppbuilder-gcc10:latest
steps:
- uses: actions/checkout@v2
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -G Ninja
- name: build
run: cmake --build .
- name: test
run: ctest -C Release -T test --output-on-failure --timeout 10