Skip to content

Commit

Permalink
Merge pull request #129 from miker2/update-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miker2 authored Nov 8, 2023
2 parents b2006a6 + ec04ca8 commit 0a960e5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
ubuntu-latest-gcc-12,
ubuntu-20.04-clang-13,
ubuntu-22.04-clang-14,
ubuntu-22.04-clang-15,
mac-os-latest
]

Expand All @@ -47,18 +48,36 @@ jobs:
compiler: clang
version: "14"

- name: ubuntu-22.04-clang-15
os: ubuntu-22.04
compiler: clang
version: "15"

- name: mac-os-latest
os: macos-latest
CC: clang
CXX: clang++

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4

- name: Install dependencies
run: |
if [ "${{ runner.os }}" = "Linux" ]; then
# Workaround https://github.com/actions/runner-images/issues/8659
echo "matrix.name=${{ matrix.name }}"
echo "matrix.os=${{ matrix.os }}"
if [[ "${{ matrix.name }}" = "ubuntu-22.04-clang-14" ]] || [[ "${{ matrix.os }}" = "ubuntu-latest" ]] ; then
echo "Workaround for https://github.com/actions/runner-images/issues/8659"
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
sudo apt-get update
sudo apt-get install -y --allow-downgrades libc6=2.35-0ubuntu3.4 \
libc6-dev=2.35-0ubuntu3.4 \
libstdc++6=12.3.0-1ubuntu1~22.04 \
libgcc-s1=12.3.0-1ubuntu1~22.04
fi
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
# Figure out which version of ubuntu is actually running
Expand Down Expand Up @@ -111,7 +130,7 @@ jobs:

# This must happen before the "Configure CMake" step otherwise the python version used to compile
# will be different than the one installed here.
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
Expand Down
2 changes: 1 addition & 1 deletion src/config_reader_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ auto main(int argc, char* argv[]) -> int {
// Read a deeply nested set of lists
const auto my_nested_list_key = "outer.deep_multi_list";
const auto out = cfg.getValue<std::vector<std::vector<std::vector<int>>>>(my_nested_list_key);
fmt::print("Value of '{}' is : \n", my_nested_list_key); // , fmt::join(out, ", "));
fmt::print("Value of '{}' is : \n", my_nested_list_key); // , fmt::join(out, ", "));
for (const auto& v0 : out) {
fmt::print("[");
for (const auto& v1 : v0) {
Expand Down

0 comments on commit 0a960e5

Please sign in to comment.