mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Update GHA CI
This commit is contained in:
committed by
Mohammad Nejati
parent
718992bf93
commit
cc58816ffc
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -212,10 +212,6 @@ jobs:
|
|||||||
os: ubuntu-24.04
|
os: ubuntu-24.04
|
||||||
supported: true
|
supported: true
|
||||||
# macos
|
# macos
|
||||||
- toolset: clang
|
|
||||||
os: macos-12
|
|
||||||
cxxstd: "11,14,17,20,2b"
|
|
||||||
supported: true
|
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
os: macos-13
|
os: macos-13
|
||||||
cxxstd: "11,14,17,20,2b"
|
cxxstd: "11,14,17,20,2b"
|
||||||
@ -224,6 +220,10 @@ jobs:
|
|||||||
os: macos-14
|
os: macos-14
|
||||||
cxxstd: "11,14,17,20,2b"
|
cxxstd: "11,14,17,20,2b"
|
||||||
supported: true
|
supported: true
|
||||||
|
- toolset: clang
|
||||||
|
os: macos-15
|
||||||
|
cxxstd: "11,14,17,20,2b"
|
||||||
|
supported: true
|
||||||
|
|
||||||
needs: [runner-selection]
|
needs: [runner-selection]
|
||||||
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
|
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
|
||||||
@ -231,8 +231,8 @@ jobs:
|
|||||||
image: ${{ matrix.container }}
|
image: ${{ matrix.container }}
|
||||||
volumes:
|
volumes:
|
||||||
- /node20217:/node20217:rw,rshared
|
- /node20217:/node20217:rw,rshared
|
||||||
- /node20217:/__e/node20:ro,rshared
|
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup container environment
|
- name: Setup container environment
|
||||||
if: matrix.container != ''
|
if: matrix.container != ''
|
||||||
@ -251,7 +251,7 @@ jobs:
|
|||||||
sudo /usr/local/bin/pip install cmake
|
sudo /usr/local/bin/pip install cmake
|
||||||
|
|
||||||
- name: Install nodejs20glibc2.17
|
- name: Install nodejs20glibc2.17
|
||||||
if: matrix.container == 'ubuntu:16.04' || matrix.container == 'ubuntu:18.04'
|
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
|
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
|
||||||
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
|
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
|
||||||
@ -605,7 +605,7 @@ jobs:
|
|||||||
- name: Use the installed library
|
- name: Use the installed library
|
||||||
run: |
|
run: |
|
||||||
cd ../boost-root/libs/$LIBRARY/test/cmake_test && mkdir __build__ && cd __build__
|
cd ../boost-root/libs/$LIBRARY/test/cmake_test && mkdir __build__ && cd __build__
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
|
cmake -DCMAKE_INSTALL_PREFIX=~/.local -DBOOST_CI_INSTALL_TEST=ON ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
ctest --output-on-failure --no-tests=error
|
ctest --output-on-failure --no-tests=error
|
||||||
|
|
||||||
@ -771,7 +771,7 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
cd ../boost-root/libs/%LIBRARY%/test/cmake_test && mkdir __build__ && cd __build__
|
cd ../boost-root/libs/%LIBRARY%/test/cmake_test && mkdir __build__ && cd __build__
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix -DCMAKE_TOOLCHAIN_FILE="../../../cmake/toolchains/msvc.cmake" ..
|
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix -DBOOST_CI_INSTALL_TEST=ON -DCMAKE_TOOLCHAIN_FILE="../../../cmake/toolchains/msvc.cmake" ..
|
||||||
cmake --build . --config Debug
|
cmake --build . --config Debug
|
||||||
ctest --output-on-failure --no-tests=error -C Debug
|
ctest --output-on-failure --no-tests=error -C Debug
|
||||||
|
|
||||||
|
3
.github/workflows/fuzz.yml
vendored
3
.github/workflows/fuzz.yml
vendored
@ -60,6 +60,7 @@ jobs:
|
|||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DBOOST_BEAST_BUILD_EXAMPLES=OFF \
|
-DBOOST_BEAST_BUILD_EXAMPLES=OFF \
|
||||||
|
-DBOOST_BEAST_BUILD_TESTS=ON \
|
||||||
-DBOOST_BEAST_BUILD_FUZZERS=ON \
|
-DBOOST_BEAST_BUILD_FUZZERS=ON \
|
||||||
-DBOOST_BEAST_FUZZER_CORPUS_PATH=${{ github.workspace }}/corpus.tar ..
|
-DBOOST_BEAST_FUZZER_CORPUS_PATH=${{ github.workspace }}/corpus.tar ..
|
||||||
make boost_beast_fuzz_all
|
cmake --build . --target boost_beast_fuzz_all
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2023 Christian Mazakas
|
|
||||||
# Copyright (c) 2022 alandefreitas (alandefreitas@gmail.com)
|
# Copyright (c) 2022 alandefreitas (alandefreitas@gmail.com)
|
||||||
|
# Copyright (c) 2023 Christian Mazakas
|
||||||
|
# Copyright (c) 2024 Mohammad Nejati
|
||||||
#
|
#
|
||||||
# Distributed under the Boost Software License, Version 1.0.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# https://www.boost.org/LICENSE_1_0.txt
|
# https://www.boost.org/LICENSE_1_0.txt
|
||||||
@ -18,7 +19,7 @@ else()
|
|||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
add_subdirectory(../.. boostorg/beast)
|
add_subdirectory(../.. boostorg/beast)
|
||||||
|
|
||||||
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
set(BOOST_BEAST_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
set(deps
|
set(deps
|
||||||
# Primary dependencies
|
# Primary dependencies
|
||||||
|
Reference in New Issue
Block a user