-
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
5 changed files
with
79 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'get conan dependency provider' | ||
description: "installs conan_provider.cmake" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get dependency provider | ||
shell: bash | ||
run: | | ||
sudo apt-get install -y wget | ||
wget https://github.com/conan-io/cmake-conan/raw/develop2/conan_provider.cmake -O conan_provider.cmake |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Configure Conan' | ||
description: "installs conan via pip and creates a default user for it" | ||
inputs: | ||
conan-version: | ||
description: "conan version to install" | ||
default: 2.3.1 | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install conan | ||
shell: bash | ||
run: | | ||
pip3 install "conan==${{ inputs.conan-version }}" | ||
- name: configure conan | ||
shell: bash | ||
run: | | ||
# conan profile update is deprecated (https://github.com/conan-io/conan/issues/13205) | ||
# and they don't want you to use detect because it is unstable | ||
conan profile detect # Force creation of conan directory structure, will be overwritten | ||
echo '{% set compiler, version = detect_api.detect_compiler() %}' > ~/.conan2/profiles/default | ||
echo '[settings]' >> ~/.conan2/profiles/default | ||
echo 'os={{ detect_api.detect_os() }}' >> ~/.conan2/profiles/default | ||
echo 'arch={{ detect_api.detect_arch() }}' >> ~/.conan2/profiles/default | ||
echo 'build_type=Release' >> ~/.conan2/profiles/default | ||
echo 'compiler={{ compiler }}' >> ~/.conan2/profiles/default | ||
echo 'compiler.version={{ detect_api.default_compiler_version(compiler, version) }}' >> ~/.conan2/profiles/default | ||
echo 'compiler.libcxx=libstdc++11' >> ~/.conan2/profiles/default |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'setup apt repositories' | ||
description: "sets up package apt repositories for clang/gcc" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Add repos | ||
shell: bash | ||
run: | | ||
# gcc-13 | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
# clang-16 | ||
source /etc/os-release | ||
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 |
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