# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc

build:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y libogg-dev zip doxygen
  script:
    - ./autogen.sh
    - ./configure
    - make
    - make distcheck
  cache:
    paths:
      - "lib/*.o"
      - "lib/.libs/*.o"
  tags:
    - docker

# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc

autoconf:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y libogg-dev zip doxygen
  script:
    - ./autogen.sh
    - ./configure
    - make
    - make distcheck
  cache:
    paths:
      - "lib/*.o"
      - "lib/.libs/*.o"
  tags:
    - docker

cmake:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y libogg-dev zip doxygen
        cmake ninja-build
  script:
    - mkdir build
    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    - cmake --build build
  tags:
    - docker

Add cmake build to gitlab ci.
Add cmake build to gitlab ci.

Add an additional build job to the gitlab ci pipeline to do a
cmake build. This doesn't run tests, but gives us a little
bit of converage.
