This is useful now that it uses different commands for installing packages under different systems, as it means that we don't have to write these commands manually in the CI configuration files.
36 lines
933 B
YAML
36 lines
933 B
YAML
# Config file for CI jobs on CircleCI (circleci.com).
|
|
version: 2.1
|
|
|
|
jobs:
|
|
build-fedora:
|
|
docker:
|
|
- image: fedora
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: Install dependencies
|
|
command: |
|
|
WX_EXTRA_PACKAGES=git ./build/tools/before_install.sh
|
|
|
|
- run:
|
|
name: Checkout required submodules
|
|
command: |
|
|
git submodule update --init 3rdparty/catch 3rdparty/nanosvg
|
|
|
|
- run:
|
|
name: Configure
|
|
command: ./configure --disable-debug-info
|
|
|
|
# Do _not_ use total CPU count for building, it is too high (36 logical
|
|
# CPUs) and results in running out of memory, so limit ourselves to just
|
|
# 2 CPUs we're supposed to be using in Docker Medium resource class.
|
|
- run:
|
|
name: Build
|
|
command: |
|
|
make -k -j2 CXXFLAGS='-Werror -Wno-error=cpp'
|
|
|
|
workflows:
|
|
build:
|
|
jobs:
|
|
- build-fedora
|