Skip to content

Sync from upstream. #199

Sync from upstream.

Sync from upstream. #199

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- modular
paths-ignore:
- ".github/workflows/modular-check-libs-docs.yml"
- ".github/workflows/modular-check-libs.yml"
- ".github/workflows/modular-release.yml"
tags:
- '**'
jobs:
b2-posix:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Boost
run: |
./bootstrap.sh
./b2 -d0 headers
- name: Build Boost
run: |
./b2 stage
- name: Install Boost
run: |
./b2 --prefix=$HOME/.local install
- name: Test Boost
run: |
cd status
../b2 quick
b2-windows:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Boost
shell: cmd
run: |
cmd /c bootstrap
b2 -v
b2 -d0 headers
- name: Build Boost
run: |
./b2 stage link=static
- name: Install Boost
run: |
./b2 install link=static
- name: Test Boost
run: |
cd status
../b2 quick link=static
cmake-install-posix:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{matrix.os}}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Boost
run: |
mkdir __build__ && cd __build__
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=~/.local ..
- name: Build Boost
run: |
cd __build__
cmake --build . -j 3
- name: Install Boost
run: |
cd __build__
cmake --build . -j 3 --target install
cmake-install-windows:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Boost
run: |
mkdir __build__ && cd __build__
cmake -DBUILD_SHARED_LIBS=ON ..
- name: Build Boost
run: |
cd __build__
cmake --build . -j 3
- name: Install Boost
run: |
cd __build__
cmake --build . -j 3 --target install
cmake-test-posix:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Boost
run: |
mkdir __build__ && cd __build__
cmake -DBUILD_TESTING=ON -DBOOST_EXCLUDE_LIBRARIES="process;geometry" ..
- name: Build tests
run: |
cd __build__
cmake --build . -j 3 --target tests
- name: Run tests
run: |
cd __build__
ctest --output-on-failure --no-tests=error -j 3
cmake-test-posix-quick:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{matrix.os}}
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Boost
run: |
mkdir __build__ && cd __build__
cmake -DBUILD_TESTING=ON ..
- name: Build tests
run: |
cd __build__
cmake --build . -j 3 --target tests-quick
- name: Run tests
run: |
cd __build__
ctest --output-on-failure --no-tests=error -j 3 -R quick
cmake-test-windows-quick:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Boost
run: |
mkdir __build__ && cd __build__
cmake -DBUILD_TESTING=ON ..
- name: Build tests
run: |
cd __build__
cmake --build . -j 3 --target tests-quick
- name: Run tests
run: |
cd __build__
ctest --output-on-failure --no-tests=error -j 3 -R quick -C Debug