-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
43 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,56 +31,42 @@ jobs: | |
|
||
steps: | ||
- name: Add repos for for gcc-13 and clang-16 | ||
run: | | ||
# gcc-13 | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
source /etc/os-release | ||
# clang-16 | ||
echo "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-16 main" | sudo tee /etc/apt/sources.list.d/llvm-16.list | ||
curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/llvm-16.gpg > /dev/null | ||
# clang-17 | ||
echo "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main" | sudo tee /etc/apt/sources.list.d/llvm-17.list | ||
curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/llvm-17.gpg > /dev/null | ||
sudo apt-get update -y | ||
uses: dice-group/cpp-conan-release-reusable-workflow/.github/actions/setup_apt@main | ||
|
||
- name: Install CMake | ||
uses: lukka/get-cmake@latest | ||
with: | ||
cmakeVersion: 3.27.7 | ||
cmakeVersion: 3.29.3 | ||
|
||
- name: Install compiler | ||
id: install_cc | ||
uses: rlalik/[email protected] | ||
with: | ||
compiler: ${{ matrix.config.compiler }} | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Configure conan | ||
uses: dice-group/cpp-conan-release-reusable-workflow/.github/actions/configure_conan@main | ||
with: | ||
conan-version: 2.3.1 | ||
|
||
- name: Install conan | ||
shell: bash | ||
env: | ||
CC: ${{ steps.install_cc.outputs.cc }} | ||
CXX: ${{ steps.install_cc.outputs.cxx }} | ||
- name: add conan user | ||
run: | | ||
pip3 install "conan==1.62.0" | ||
conan profile new --detect default | ||
conan profile update env.CXX="${CXX}" default | ||
conan profile update env.CC="${CC}" default | ||
conan profile update settings.compiler.libcxx=libstdc++11 default | ||
conan remote add -f dice-group https://conan.dice-research.org/artifactory/api/conan/tentris | ||
- name: Cache conan data | ||
id: cache-conan | ||
uses: actions/cache@v4 | ||
uses: actions/cache@v4.0.2 | ||
with: | ||
path: ~/.conan/data | ||
key: tests-${{ matrix.config.os }}-${{ matrix.config.compiler }}-conan | ||
path: ~/.conan2/p | ||
key: ${{ matrix.config.os }}-${{ matrix.config.compiler }} | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Get dependency provider | ||
uses: dice-group/cpp-conan-release-reusable-workflow/.github/actions/add_conan_provider@main | ||
|
||
- name: Configure CMake | ||
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -DUSE_CONAN=On -G Ninja -B build . | ||
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCONAN_INSTALL_ARGS="--build=missing;-o=boost/*:header_only=True" -G Ninja -B build . | ||
env: | ||
CC: ${{ steps.install_cc.outputs.cc }} | ||
CXX: ${{ steps.install_cc.outputs.cxx }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters