Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Nov 18, 2024
1 parent 434a23f commit 286a77e
Showing 1 changed file with 77 additions and 77 deletions.
154 changes: 77 additions & 77 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ name: ci
on: [push, pull_request]

jobs:
build_linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler:
- gcc:14
- gcc:13
- clang:19
- clang:18
boost:
- true
- false
container:
image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}"
name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
steps:
- uses: actions/checkout@main
- name: Cache Conan Packages
uses: actions/cache@main
with:
path: ~/.conan2/p/
key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
- name: Install dependencies
run: script/ci_setup.sh
- name: Install Boost
if: ${{ matrix.boost == true }}
run: |
add-apt-repository ppa:mhier/libboost-latest
apt-get update
apt-get install -y boost1.83
- name: Build
run: script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
- name: Check deployment as cmake subdirectory
run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
- name: Install
run: cmake --install build
- name: Check installed library
run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF


# build_linux:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# compiler:
# - gcc:14
# - gcc:13
# - clang:19
# - clang:18
# boost:
# - true
# - false
# container:
# image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}"
# name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
# steps:
# - uses: actions/checkout@main
# - name: Cache Conan Packages
# uses: actions/cache@main
# with:
# path: ~/.conan2/p/
# key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
# - name: Install dependencies
# run: script/ci_setup.sh
# - name: Install Boost
# if: ${{ matrix.boost == true }}
# run: |
# add-apt-repository ppa:mhier/libboost-latest
# apt-get update
# apt-get install -y boost1.83
# - name: Build
# run: script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
# - name: Check deployment as cmake subdirectory
# run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
# - name: Install
# run: cmake --install build
# - name: Check installed library
# run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF
#
#
build_windows:
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -81,40 +81,40 @@ jobs:
script/ci_build.sh -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS_INIT=-D_WIN32_WINNT=0x0A00 -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
- name: Install
run: cmake --build --preset conan-release --target install


build_osx:
runs-on: macOS-latest
name: "mac os x"
steps:
- uses: actions/checkout@main
- name: Cache Conan Packages
uses: actions/cache@main
with:
path: ~/.conan2/p/
key: conan-${{ runner.os }}-macos-${{ hashFiles('conanfile.py') }}
- name: Install Dependencies
run: |
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
brew install boost
pipx install conan
conan profile detect
mkdir build
conan install -o "&":system=True -s compiler.cppstd=20 --build=missing . -of build
- name: Build
run: script/ci_build.sh
- name: Install
run: cmake --install ./build --prefix /tmp/ci_ifdb


formatting-check:
name: "formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: DoozyX/clang-format-lint-action@master
name: "Verify formatting"
with:
clangFormatVersion: 17

#
#
# build_osx:
# runs-on: macOS-latest
# name: "mac os x"
# steps:
# - uses: actions/checkout@main
# - name: Cache Conan Packages
# uses: actions/cache@main
# with:
# path: ~/.conan2/p/
# key: conan-${{ runner.os }}-macos-${{ hashFiles('conanfile.py') }}
# - name: Install Dependencies
# run: |
# export HOMEBREW_NO_AUTO_UPDATE=1
# export HOMEBREW_NO_INSTALL_CLEANUP=1
# brew install boost
# pipx install conan
# conan profile detect
# mkdir build
# conan install -o "&":system=True -s compiler.cppstd=20 --build=missing . -of build
# - name: Build
# run: script/ci_build.sh
# - name: Install
# run: cmake --install ./build --prefix /tmp/ci_ifdb
#
#
# formatting-check:
# name: "formatting"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@main
# - uses: DoozyX/clang-format-lint-action@master
# name: "Verify formatting"
# with:
# clangFormatVersion: 17
#

0 comments on commit 286a77e

Please sign in to comment.