mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 23:42:32 +02:00
Update CI runners (#658)
This commit is contained in:
parent
78f91ad54c
commit
7cb78a8ff8
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-20.04"]
|
os: ["ubuntu-22.04"]
|
||||||
cppstd: ["98", "11", "20"]
|
cppstd: ["98", "11", "20"]
|
||||||
cc: ["gcc-10"]
|
cc: ["gcc-10"]
|
||||||
cxx: ["g++-10"]
|
cxx: ["g++-10"]
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
libzmqbuild: ["cmake"]
|
libzmqbuild: ["cmake"]
|
||||||
include:
|
include:
|
||||||
# older libzmq and without draft
|
# older libzmq and without draft
|
||||||
- os: "ubuntu-20.04"
|
- os: "ubuntu-22.04"
|
||||||
cppstd: "11"
|
cppstd: "11"
|
||||||
cc: "gcc-9"
|
cc: "gcc-9"
|
||||||
cxx: "g++-9"
|
cxx: "g++-9"
|
||||||
@ -28,15 +28,15 @@ jobs:
|
|||||||
libzmq: "4.2.0"
|
libzmq: "4.2.0"
|
||||||
libzmqbuild: "pkgconfig"
|
libzmqbuild: "pkgconfig"
|
||||||
# without draft
|
# without draft
|
||||||
- os: "ubuntu-22.04"
|
- os: "ubuntu-24.04"
|
||||||
cppstd: "20"
|
cppstd: "23"
|
||||||
cc: "gcc-11"
|
cc: "gcc-13"
|
||||||
cxx: "g++-11"
|
cxx: "g++-13"
|
||||||
drafts: "OFF"
|
drafts: "OFF"
|
||||||
libzmq: "4.3.5"
|
libzmq: "4.3.5"
|
||||||
libzmqbuild: "cmake"
|
libzmqbuild: "cmake"
|
||||||
# coverage (gcc version should match gcov version)
|
# coverage (gcc version should match gcov version)
|
||||||
- os: "ubuntu-20.04"
|
- os: "ubuntu-22.04"
|
||||||
cppstd: "17"
|
cppstd: "17"
|
||||||
cc: "gcc-9"
|
cc: "gcc-9"
|
||||||
cxx: "g++-9"
|
cxx: "g++-9"
|
||||||
@ -46,10 +46,10 @@ jobs:
|
|||||||
coverage: "-DCOVERAGE=ON"
|
coverage: "-DCOVERAGE=ON"
|
||||||
aptinstall: "lcov"
|
aptinstall: "lcov"
|
||||||
# clang
|
# clang
|
||||||
- os: "ubuntu-20.04"
|
- os: "ubuntu-22.04"
|
||||||
cppstd: "17"
|
cppstd: "17"
|
||||||
cc: "clang-12"
|
cc: "clang-14"
|
||||||
cxx: "clang++-12"
|
cxx: "clang++-14"
|
||||||
drafts: "ON"
|
drafts: "ON"
|
||||||
libzmq: "4.3.5"
|
libzmq: "4.3.5"
|
||||||
libzmqbuild: "cmake"
|
libzmqbuild: "cmake"
|
||||||
@ -63,14 +63,14 @@ jobs:
|
|||||||
libzmqbuild: false
|
libzmqbuild: false
|
||||||
brewinstall: "zeromq"
|
brewinstall: "zeromq"
|
||||||
# windows
|
# windows
|
||||||
- os: "windows-2019"
|
#- os: "windows-2019"
|
||||||
cppstd: "14"
|
# cppstd: "14"
|
||||||
cc: "msbuild"
|
# cc: "msbuild"
|
||||||
cxx: "msbuild"
|
# cxx: "msbuild"
|
||||||
drafts: "ON"
|
# drafts: "ON"
|
||||||
libzmq: "4.3.5"
|
# libzmq: "4.3.5"
|
||||||
libzmqbuild: "cmake"
|
# libzmqbuild: "cmake"
|
||||||
platform: "-Ax64"
|
# platform: "-Ax64"
|
||||||
- os: "windows-2022"
|
- os: "windows-2022"
|
||||||
cppstd: "20"
|
cppstd: "20"
|
||||||
cc: "msbuild"
|
cc: "msbuild"
|
||||||
@ -116,6 +116,12 @@ jobs:
|
|||||||
cmake --build libzmq-build --config ${BUILDTYPE} -j ${THREADS}
|
cmake --build libzmq-build --config ${BUILDTYPE} -j ${THREADS}
|
||||||
echo "LIBZMQ=${PWD}/libzmq-build" >> ${GITHUB_ENV}
|
echo "LIBZMQ=${PWD}/libzmq-build" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
|
- name: post_build_libzmq_cmake
|
||||||
|
if: ${{ matrix.libzmqbuild == 'cmake' && startsWith(matrix.os, 'windows') }}
|
||||||
|
run: |
|
||||||
|
mkdir -p build/tests/${BUILDTYPE}
|
||||||
|
cp ${{ env.LIBZMQ }}/bin/${BUILDTYPE}/*.dll build/tests/${BUILDTYPE}
|
||||||
|
|
||||||
- name: build_libzmq_pkgconfig
|
- name: build_libzmq_pkgconfig
|
||||||
if: ${{ matrix.libzmqbuild == 'pkgconfig' }}
|
if: ${{ matrix.libzmqbuild == 'pkgconfig' }}
|
||||||
working-directory: libzmq-${{ matrix.libzmq }}
|
working-directory: libzmq-${{ matrix.libzmq }}
|
||||||
@ -145,7 +151,7 @@ jobs:
|
|||||||
|
|
||||||
- name: demo
|
- name: demo
|
||||||
# probably need to install libzmq and cppzmq for this to work on windows
|
# probably need to install libzmq and cppzmq for this to work on windows
|
||||||
if: ${{ matrix.os == 'ubuntu*' }}
|
if: ${{ matrix.os == 'ubuntu-24.04' }}
|
||||||
env:
|
env:
|
||||||
CMAKE_PREFIX_PATH: ${{ env.LIBZMQ }}:${{ env.CPPZMQ }}
|
CMAKE_PREFIX_PATH: ${{ env.LIBZMQ }}:${{ env.CPPZMQ }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user