@@ -35,61 +35,27 @@ jobs:
35
35
fail-fast : true
36
36
matrix :
37
37
include : [
38
- # You can access the following values via ${{ matrix.??? }}
39
- #
40
- # pkgs : apt-get package names separated by space
41
- # cxx : C++ compiler executable
42
- # os : GitHub Actions YAML workflow label. See https://github.com/actions/virtual-environments#available-environments
43
-
44
38
# linux: gcc
45
- { os: ubuntu-24.04, cxx: g++-14, pkgs: '' }, # (default on Noble 24.04)
46
- { os: ubuntu-22.04, cxx: g++-11, pkgs: '' }, # (default on Jammy 22.04)
47
- { os: ubuntu-22.04, cxx: g++-9, pkgs: '' }, # (default on Focal 20.04)
48
- { os: ubuntu-20.04 , cxx: g++-7, pkgs: 'g++-7' }, # (default on Bionic 18 .04)
49
- { os: ubuntu-20.04 , cxx: g++-5, pkgs: 'g++-5', repo: 'xenial' }, # (default on Xenial 16.04)
50
- { os: ubuntu-20.04 , cxx: g++-4.8, pkgs: 'g++-4.8', repo: 'trusty' }, # (default on Trusty 14.04)
39
+ { os: ubuntu-24.04, cxx: g++-14 }, # (default on Noble 24.04)
40
+ { os: ubuntu-22.04, cxx: g++-11 }, # (default on Jammy 22.04)
41
+ { os: ubuntu-22.04, cxx: g++-9 }, # (default on Focal 20.04)
42
+ { os: ubuntu-latest , cxx: g++-7, image: conanio/gcc7 }, # (default on Focal 20 .04)
43
+ { os: ubuntu-latest , cxx: g++-5, image: conanio/gcc5 }, # (default on Xenial 16.04)
44
+ { os: ubuntu-latest , cxx: g++-4.8, image: conanio/gcc48 }, # (default on Trusty 14.04)
51
45
# linux: clang
52
- { os: ubuntu-22.04, cxx: clang++-14, pkgs: '' },
53
- { os: ubuntu-20.04, cxx: clang++-10, pkgs: '' },
54
- { os: ubuntu-20.04, cxx: clang++-6.0, pkgs: 'clang-6.0' },
46
+ { os: ubuntu-24.04, cxx: clang++-18 },
47
+ { os: ubuntu-latest, cxx: clang++-6.0, image: conanio/clang60 },
55
48
# windows: msvc
56
- { os: windows-2019, cxx: 'vs2019' },
57
- { os: windows-2022, cxx: 'vs2022' },
49
+ # unfortunately, Visual Studio 2019 is not available on github-hosted runners anymore
50
+ { os: windows-2022, cxx: vs2022-x86, generator: '-G "Visual Studio 17 2022" -A Win32' },
51
+ { os: windows-2022, cxx: vs2022-x64, generator: '-G "Visual Studio 17 2022" -A x64' },
58
52
# macos: clang
59
53
{ os: macos-13, cxx: 'clang++' }
60
54
]
61
55
62
- runs-on : ${{ matrix.os }}
63
-
64
- env :
65
- CXX : ${{ matrix.cxx }}
66
-
67
- steps :
68
- - name : checkout
69
- uses : actions/checkout@v3
70
- with :
71
- fetch-depth : 0
72
-
73
- # workaround for broken clang on ubuntu runner until https://github.com/actions/runner-images/issues/8659 get fixed
74
- - uses : mjp41/workaround8649@c8550b715ccdc17f89c8d5c28d7a48eeff9c94a8
75
- with :
76
- os : ${{ matrix.os }}
77
-
78
- - name : apt/sources.list.d
79
- if : ${{ matrix.repo != '' }}
80
- run : |
81
- echo "deb http://archive.ubuntu.com/ubuntu ${{ matrix.repo }} main" | sudo tee /etc/apt/sources.list.d/${{ matrix.repo }}.list
82
-
83
- - name : apt-get install
84
- if : ${{ matrix.pkgs != '' }}
85
- run : |
86
- sudo apt-get update
87
- sudo apt-get install ${{ matrix.pkgs }}
88
-
89
- - name : build
90
- run : |
91
- cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DPLOG_BUILD_TESTS=1 .
92
- cmake --build build --parallel
93
-
94
- - name : test
95
- run : cd build && ctest -V
56
+ uses : ./.github/workflows/build.yml
57
+ with :
58
+ image : ${{ matrix.image }}
59
+ os : ${{ matrix.os }}
60
+ cxx : ${{ matrix.cxx }}
61
+ generator : ${{ matrix.generator }}
0 commit comments