Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ac8333d
Make the library modular usable.
grafikrobot Mar 11, 2024
cde1ba0
Switch to library requirements instead of source. As source puts extr…
grafikrobot Mar 30, 2024
1a46524
Add requires-b2 check to top-level build file.
grafikrobot May 5, 2024
d9ee987
Bump B2 require to 5.2
grafikrobot Jun 14, 2024
2e4e554
Update copyright dates.
grafikrobot Jul 21, 2024
6cf458a
Move inter-lib dependencies to a project variable and into the build …
grafikrobot Jul 24, 2024
083b2c5
Adjust self dependencies as inter-lib deps no longer apply globally.
grafikrobot Jul 27, 2024
7ee0ba9
Add Boost.ThrowExceptions transitive dep module.
grafikrobot Apr 13, 2025
a350100
Need 22.04 for gcc-11.
grafikrobot Apr 13, 2025
e591659
Use latest macOS for GHA.
grafikrobot Apr 13, 2025
ae2607e
windows-2016 is no longer available for GHA.
grafikrobot Apr 13, 2025
af73a8d
ubuntu-18.04 is no longer available for GHA.
grafikrobot Apr 13, 2025
1d9dc3c
Use ubuntu-24 for gcc on GHA.
grafikrobot Apr 13, 2025
49de58c
ubuntu-18.04 is no longer available for GHA.
grafikrobot Apr 13, 2025
1cdbdad
Use latest clang version on latest ubuntu-24 for GHA.
grafikrobot Apr 13, 2025
c1f7217
Need to instal gcc-9.
grafikrobot Apr 13, 2025
26b21c3
Move include to target.
grafikrobot Apr 17, 2025
18a8387
Put back disabled CI compilers with hopefully fixed building to accou…
grafikrobot Jun 6, 2025
fc912a4
Fix copy-paste error for cxxstd option.
grafikrobot Jun 6, 2025
3f4fe93
Fix to avoid unattended attempt at instal prompt.
grafikrobot Jun 6, 2025
581b4ff
Undo many of the CI changes.
grafikrobot Jun 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 81 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,97 +14,134 @@ jobs:
matrix:
include:
- toolset: gcc-4.8
standard: "03,11"
os: ubuntu-18.04
cxxstd: "03,11"
container: ubuntu:18.04
os: ubuntu-latest
install: g++-4.8
- toolset: gcc-5
standard: "03,11,14,1z"
os: ubuntu-18.04
cxxstd: "03,11,14,1z"
container: ubuntu:18.04
os: ubuntu-latest
install: g++-5
- toolset: gcc-6
standard: "03,11,14,1z"
os: ubuntu-18.04
cxxstd: "03,11,14,1z"
container: ubuntu:18.04
os: ubuntu-latest
install: g++-6
- toolset: gcc-7
standard: "03,11,14,17"
os: ubuntu-18.04
cxxstd: "03,11,14,17"
container: ubuntu:20.04
os: ubuntu-latest
install: g++-7
- toolset: gcc-8
standard: "03,11,14,17,2a"
os: ubuntu-18.04
cxxstd: "03,11,14,17,2a"
container: ubuntu:20.04
os: ubuntu-latest
install: g++-8
- toolset: gcc-9
standard: "03,11,14,17,2a"
os: ubuntu-18.04
cxxstd: "03,11,14,17,2a"
container: ubuntu:20.04
os: ubuntu-latest
- toolset: gcc-10
standard: "03,11,14,17,2a"
os: ubuntu-20.04
cxxstd: "03,11,14,17,2a"
container: ubuntu:20.04
os: ubuntu-latest
install: g++-10
- toolset: gcc-11
standard: "03,11,14,17,2a"
os: ubuntu-20.04
cxxstd: "03,11,14,17,2a"
container: ubuntu:24.04
os: ubuntu-latest
install: g++-11
- toolset: clang
compiler: clang++-3.9
standard: "03,11,14"
os: ubuntu-18.04
cxxstd: "03,11,14"
container: ubuntu:18.04
os: ubuntu-latest
install: clang-3.9
- toolset: clang
compiler: clang++-4.0
standard: "03,11,14"
os: ubuntu-18.04
cxxstd: "03,11,14"
container: ubuntu:18.04
os: ubuntu-latest
install: clang-4.0
- toolset: clang
compiler: clang++-5.0
standard: "03,11,14,1z"
os: ubuntu-18.04
cxxstd: "03,11,14,1z"
container: ubuntu:18.04
os: ubuntu-latest
install: clang-5.0
- toolset: clang
compiler: clang++-6.0
standard: "03,11,14,17"
os: ubuntu-18.04
cxxstd: "03,11,14,17"
container: ubuntu:20.04
os: ubuntu-latest
install: clang-6.0
- toolset: clang
compiler: clang++-7
standard: "03,11,14,17"
os: ubuntu-18.04
cxxstd: "03,11,14,17"
container: ubuntu:20.04
os: ubuntu-latest
install: clang-7
- toolset: clang
compiler: clang++-8
standard: "03,11,14,17"
os: ubuntu-20.04
cxxstd: "03,11,14,17"
container: ubuntu:20.04
os: ubuntu-latest
install: clang-8
- toolset: clang
compiler: clang++-9
standard: "03,11,14,17,2a"
os: ubuntu-20.04
cxxstd: "03,11,14,17"
container: ubuntu:20.04
os: ubuntu-latest
install: clang-9
- toolset: clang
compiler: clang++-10
standard: "03,11,14,17,2a"
os: ubuntu-20.04
cxxstd: "03,11,14,17,2a"
container: ubuntu:20.04
os: ubuntu-latest
install: clang-10
- toolset: clang
compiler: clang++-11
cxxstd: "03,11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-11
- toolset: clang
compiler: clang++-12
cxxstd: "03,11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-12
- toolset: clang
standard: "03,11,14,17,2a"
os: macos-10.15
cxxstd: "03,11,14,17,20,2b"
os: macos-15

runs-on: ${{matrix.os}}
container:
image: ${{matrix.container}}
volumes:
- /node20217:/node20217:rw,rshared
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}

steps:
- uses: actions/checkout@v2
- name: Setup container environment
if: matrix.container
run: |
apt-get update
apt-get -y install sudo python3 git g++ curl xz-utils

- name: Install nodejs20glibc2.17
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
run: |
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
ldd /__e/node20/bin/node

- name: Install packages
if: matrix.install
run: sudo apt install ${{matrix.install}}
run: sudo apt-get -y install ${{matrix.install}}

- uses: actions/checkout@v2

- name: Setup Boost
run: |
Expand All @@ -116,6 +153,7 @@ jobs:
git submodule init libs/config
git submodule init libs/core
git submodule init libs/static_assert
git submodule init libs/throw_exception
git submodule init libs/headers
git submodule init tools/build
git submodule init tools/boost_install
Expand All @@ -131,27 +169,23 @@ jobs:
- name: Run tests
run: |
cd ../boost
./b2 -j3 libs/align/test toolset=${{matrix.toolset}} cxxstd=${{matrix.standard}} variant=debug,release
./b2 -j3 libs/align/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} variant=debug,release

windows:
strategy:
fail-fast: false
matrix:
include:
- toolset: msvc-14.1
standard: "14,17,latest"
target: 32,64
os: windows-2016
- toolset: msvc-14.2
standard: "14,17,latest"
cxxstd: "14,17,latest"
target: 32,64
os: windows-2019
- toolset: msvc-14.3
cxxstd: "14,17,latest"
addrmd: 32,64
os: windows-2022
- toolset: gcc
standard: "03,11,14,17,2a"
cxxstd: "03,11,14,17,2a"
target: 64
os: windows-2019

Expand All @@ -171,6 +205,7 @@ jobs:
git submodule init libs/config
git submodule init libs/core
git submodule init libs/static_assert
git submodule init libs/throw_exception
git submodule init libs/headers
git submodule init tools/build
git submodule init tools/boost_install
Expand All @@ -182,4 +217,4 @@ jobs:
shell: cmd
run: |
cd ../boost
b2 -j3 libs/align/test toolset=${{matrix.toolset}} cxxstd=${{matrix.standard}} address-model=${{matrix.target}} variant=debug,release
b2 -j3 libs/align/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.target}} variant=debug,release
25 changes: 25 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright René Ferdinand Rivera Morell 2023-2024
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

require-b2 5.2 ;

constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/static_assert//boost_static_assert ;

project /boost/align
;

explicit
[ alias boost_align : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_align test ]
;

call-if : boost-library align
;

2 changes: 2 additions & 0 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import testing ;

project : requirements <library>/boost/align//boost_align ;

run align_test.cpp ;
run align_overflow_test.cpp ;
run align_down_test.cpp ;
Expand Down
Loading