Skip to content

Commit

Permalink
Integrate vcpkg into CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen committed Jan 20, 2024
1 parent 3414ceb commit d117f2e
Show file tree
Hide file tree
Showing 87 changed files with 21,945 additions and 568 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/pr-smoketest-debian.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Smoketest / Informative / Debian
on:
pull_request:
merge_group:

jobs:
test:
Expand All @@ -14,10 +13,14 @@ jobs:
# Bullseye is the oldest Debian with a new enough glm
- "bullseye" # 11
- "bookworm" # 12
- "trixie" # 13
# 13 Trixie is expected in 2025-06
# 14 is expected in 2027-06
compiler:
- g++
- clang
- clang++
build-type:
- Release
- Debug
container: debian:${{ matrix.debian }}-slim
steps:
- name: Install Dependencies
Expand All @@ -26,10 +29,15 @@ jobs:
run: |
apt-get -qq update
apt-get -qq upgrade -y
apt-get -qq install -y --no-install-recommends \
apt-file
apt-file update
apt-get -qq install -y --no-install-recommends \
ca-certificates \
git \
${{ matrix.compiler }} \
g++ \
clang \
llvm-dev \
cmake \
make \
ccache \
Expand All @@ -55,14 +63,17 @@ jobs:
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-debian-${{ matrix.debian }}-${{ matrix.compiler }}
key: ${{ github.job }}-debian-${{ matrix.debian }}-${{ matrix.compiler }}-${{ matrix.build-type }}

- name: Build Prep Anura
run: |
cmake . \
-D CMAKE_CXX_COMPILER="${{ matrix.compiler }}" \
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}"
- name: Build Anura
env:
CXX: ${{ matrix.compiler }}
# Compile with number of available hyperthreads
run: |
cmake .
# Compile with number of available hyperthreads
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/pr-smoketest-fedora.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Smoketest / Informative / Fedora
on:
pull_request:
merge_group:

jobs:
test:
Expand All @@ -20,17 +19,23 @@ jobs:
- "37"
- "38"
- "39"
# 40 is expected in 2024-04
# 41 is expected in 2024-11
compiler:
- g++
- clang
- clang++
build-type:
- Release
- Debug
container: fedora:${{ matrix.fedora }}
steps:
- name: Install Dependencies
run: |
dnf -y update
dnf -y install \
dnf -qy update
dnf -qy install \
git \
${{ matrix.compiler }} \
g++ \
clang \
cmake \
make \
ccache \
Expand All @@ -52,14 +57,17 @@ jobs:
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-fedora-${{ matrix.fedora }}-${{ matrix.compiler }}
key: ${{ github.job }}-fedora-${{ matrix.fedora }}-${{ matrix.compiler }}-${{ matrix.build-type }}

- name: Build Prep Anura
run: |
cmake . \
-D CMAKE_CXX_COMPILER="${{ matrix.compiler }}" \
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}"
- name: Build Anura
env:
CXX: ${{ matrix.compiler }}
# Compile with number of available hyperthreads
run: |
cmake .
# Compile with number of available hyperthreads
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
Expand Down
52 changes: 25 additions & 27 deletions .github/workflows/pr-smoketest-opensuse-leap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Smoketest / Informative / openSUSE Leap
on:
pull_request:
merge_group:

jobs:
test:
Expand All @@ -11,44 +10,40 @@ jobs:
fail-fast: false
matrix:
suse:
# 15.3 is the oldest openSUSE Leap with a new enough glm
- "15.3"
# 15.4 is the oldest openSUSE Leap with a new enough clang
- "15.4"
- "15.5"
# 15.6 is expected in 2024-06
# 15.7 is expected in 2025-06
compiler:
- g++
- clang
- clang++
build-type:
- Release
- Debug
container: opensuse/leap:${{ matrix.suse }}
steps:
- name: Resolve Compiler Package Name
run: |
if [[ ${{ matrix.compiler }} == g++ ]]
then
echo compiler=gcc-c++ >> "$GITHUB_ENV"
else
echo compiler=clang >> "$GITHUB_ENV"
fi
- name: Install Dependencies
run: |
zypper --non-interactive update
zypper --non-interactive install \
zypper -q --non-interactive update
zypper -q --non-interactive install \
tar \
gzip \
git \
${{ env.compiler }} \
gcc-c++ \
clang \
llvm-gold-provider \
cmake \
make \
ccache \
boost-devel \
libboost_filesystem-devel \
libboost_locale-devel \
libboost_regex-devel \
libboost_system-devel \
cairo-devel \
glew-devel \
glm-devel \
libboost_filesystem*6*devel \
libboost_locale*6*devel \
libboost_regex*6*devel \
libboost_system*6*devel \
libboost_thread*6*devel \
boost-devel \
libicu-devel \
libSDL2_image-devel \
libSDL2_mixer-devel \
Expand All @@ -64,14 +59,17 @@ jobs:
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-opensuse-leap-${{ matrix.suse }}-${{ matrix.compiler }}
key: ${{ github.job }}-opensuse-leap-${{ matrix.suse }}-${{ matrix.compiler }}-${{ matrix.build-type }}

- name: Build Prep Anura
run: |
cmake . \
-D CMAKE_CXX_COMPILER="${{ matrix.compiler }}" \
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}"
- name: Build Anura
env:
CXX: ${{ matrix.compiler }}
# Compile with number of available hyperthreads
run: |
cmake .
# Compile with number of available hyperthreads
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/pr-smoketest-ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Smoketest / Informative / Ubuntu
on:
pull_request:
merge_group:

jobs:
test:
Expand All @@ -10,11 +9,18 @@ jobs:
strategy:
fail-fast: false
matrix:
# Versions between LTS are not available for long - we only do LTS
ubuntu:
- "22.04" # LTS only for sanity
- "20.04"
- "22.04"
# 24.04 LTS is expected in 2024-04
# 26.04 LTS is expected in 2026-04
compiler:
- g++
- clang
- clang++
build-type:
- Release
- Debug
container: ubuntu:${{ matrix.ubuntu }}
steps:
- name: Install Dependencies
Expand All @@ -23,10 +29,15 @@ jobs:
run: |
apt-get -qq update
apt-get -qq upgrade -y
apt-get -qq install -y --no-install-recommends \
apt-file
apt-file update
apt-get -qq install -y --no-install-recommends \
ca-certificates \
git \
${{ matrix.compiler }} \
g++ \
clang \
llvm-dev \
cmake \
make \
ccache \
Expand All @@ -52,14 +63,17 @@ jobs:
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-ubuntu-${{ matrix.ubuntu }}-${{ matrix.compiler }}
key: ${{ github.job }}-ubuntu-${{ matrix.ubuntu }}-${{ matrix.compiler }}-${{ matrix.build-type }}

- name: Build Prep Anura
run: |
cmake . \
-D CMAKE_CXX_COMPILER="${{ matrix.compiler }}" \
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}"
- name: Build Anura
env:
CXX: ${{ matrix.compiler }}
# Compile with number of available hyperthreads
run: |
cmake .
# Compile with number of available hyperthreads
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ jobs:
test:
name: Ubuntu
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
build-type:
- Release
- Debug
steps:
- name: Install Dependencies
env:
Expand Down Expand Up @@ -43,14 +49,17 @@ jobs:
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-unit-tests-${{ matrix.fedora }}-${{ matrix.compiler }}
key: unit-tests-linux-${{ matrix.build-type }}

- name: Build Prep Anura
run: |
cmake . \
-D CMAKE_CXX_COMPILER='clang++' \
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}"
- name: Build Anura
env:
CXX: clang
# Compile with number of available hyperthreads
run: |
cmake .
# Compile with number of available hyperthreads
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
Expand Down
Loading

0 comments on commit d117f2e

Please sign in to comment.