Skip to content

Commit 448ac57

Browse files
authored
Merge pull request #197 from boostorg/ci_update
Streamline and update CI
2 parents ba238b7 + d3be907 commit 448ac57

File tree

3 files changed

+10
-159
lines changed

3 files changed

+10
-159
lines changed

.drone.star

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def main(ctx):
2222
linux_cxx("TOOLSET=gcc COMPILER=g++-10 CXXSTD=03,11,14,17,20", "g++-10", packages="g++-10", image="cppalliance/droneubuntu2004:1", buildtype="boost", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-10', 'CXXSTD': '03,11,14,17,20'}, globalenv=globalenv),
2323
linux_cxx("TOOLSET=clang COMPILER=clang++-9 CXXSTD=03,11,14,17,2a", "clang++-9", packages="clang-9", llvm_ver="9", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-9', 'CXXSTD': '03,11,14,17,2a'}, globalenv=globalenv),
2424
linux_cxx("TOOLSET=clang COMPILER=clang++-10 CXXSTD=03,11,14,17,20", "clang++-10", packages="clang-10", llvm_ver="10", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-10', 'CXXSTD': '03,11,14,17,20'}, globalenv=globalenv),
25-
linux_cxx("Ubuntu g++-13", packages="g++-13", buildtype="boost", image="cppalliance/droneubuntu2304:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-13', 'CXXSTD': '14,17,20,23', }, globalenv=globalenv),
25+
linux_cxx("Ubuntu g++-13", packages="g++-13", buildtype="boost", image="cppalliance/droneubuntu2404:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-13', 'CXXSTD': '14,17,20,23', }, globalenv=globalenv),
26+
linux_cxx("Ubuntu g++-14", packages="g++-14", buildtype="boost", image="cppalliance/droneubuntu2404:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-14', 'CXXSTD': '14,17,20,23', }, globalenv=globalenv),
2627
osx_cxx("XCode-11.7 03,11,17,2a", "clang++", packages="", buildtype="boost", xcode_version="11.7", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11,14,17,2a', }, globalenv=globalenv),
2728
osx_cxx("XCode-10.2 03,11,17,2a", "clang++", packages="", buildtype="boost", xcode_version="10.2", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11,14,17,2a', }, globalenv=globalenv),
2829
]

.drone/boost.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,12 @@ cd ..
1919
git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
2020
cd boost-root
2121
git submodule update --init tools/build
22+
git submodule update --init libs/config
2223
git submodule update --init tools/boost_install
2324
git submodule update --init libs/headers
24-
git submodule update --init libs/config
25-
git submodule update --init libs/assert
26-
git submodule update --init libs/bind
27-
git submodule update --init libs/core
28-
git submodule update --init libs/detail
29-
git submodule update --init libs/function
30-
git submodule update --init libs/integer
31-
git submodule update --init libs/move
32-
git submodule update --init libs/mpl
33-
git submodule update --init libs/preprocessor
34-
git submodule update --init libs/static_assert
35-
git submodule update --init libs/throw_exception
36-
git submodule update --init libs/type_index
37-
git submodule update --init libs/utility
25+
git submodule update --init tools/boostdep
3826
cp -r $TRAVIS_BUILD_DIR/* libs/type_traits
27+
python tools/boostdep/depinst/depinst.py type_traits
3928
./bootstrap.sh
4029
./b2 headers
4130

.github/workflows/ci.yml

Lines changed: 5 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ on:
1414
release:
1515
types: [published, created, edited]
1616
jobs:
17-
ubuntu-jammy:
18-
runs-on: ubuntu-22.04
17+
ubuntu-24_04:
18+
runs-on: ubuntu-24.04
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
compiler: [ g++-11, g++-12, clang++-14 ]
22+
compiler: [ g++-12, g++-13, clang++-15, clang++-16, clang++-17, clang++-18 ]
2323
standard: [ c++03, c++11, c++14, c++17, c++2a, gnu++03, gnu++11, gnu++14, gnu++17, gnu++2a ]
2424
steps:
2525
- uses: actions/checkout@v2
@@ -47,7 +47,7 @@ jobs:
4747
if: steps.retry1.outcome=='failure'
4848
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
4949
- name: Install packages
50-
run: sudo apt install g++-11 g++-12 clang-14
50+
run: sudo apt install g++-12 g++-13 clang-15 clang-16 clang-17 clang-18
5151
- name: Checkout main boost
5252
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
5353
- name: Update tools/boostdep
@@ -140,76 +140,13 @@ jobs:
140140
- name: Test
141141
run: ../../../b2 toolset=$TOOLSET
142142
working-directory: ../boost-root/libs/type_traits/test
143-
ubuntu-focal:
144-
runs-on: ubuntu-20.04
145-
strategy:
146-
fail-fast: false
147-
matrix:
148-
compiler: [ g++-9, g++-10, clang++-9, clang++-10 ]
149-
standard: [ c++03, c++11, c++14, c++17, c++2a, gnu++03, gnu++11, gnu++14, gnu++17, gnu++2a ]
150-
steps:
151-
- uses: actions/checkout@v2
152-
with:
153-
fetch-depth: '0'
154-
- uses: mstachniuk/ci-skip@v1
155-
with:
156-
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]'
157-
commit-filter-separator: ';'
158-
fail-fast: true
159-
- name: Set TOOLSET
160-
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
161-
- name: Add repository
162-
continue-on-error: true
163-
id: addrepo
164-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
165-
- name: Retry Add Repo
166-
continue-on-error: true
167-
id: retry1
168-
if: steps.addrepo.outcome=='failure'
169-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
170-
- name: Retry Add Repo 2
171-
continue-on-error: true
172-
id: retry2
173-
if: steps.retry1.outcome=='failure'
174-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
175-
- name: Install packages
176-
run: sudo apt install g++-9 g++-10 clang-9 clang-10
177-
- name: Checkout main boost
178-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
179-
- name: Update tools/boostdep
180-
run: git submodule update --init tools/boostdep
181-
working-directory: ../boost-root
182-
- name: Copy files
183-
run: cp -r $GITHUB_WORKSPACE/* libs/type_traits
184-
working-directory: ../boost-root
185-
- name: Install deps
186-
run: python tools/boostdep/depinst/depinst.py type_traits
187-
working-directory: ../boost-root
188-
- name: Bootstrap
189-
run: ./bootstrap.sh
190-
working-directory: ../boost-root
191-
- name: Generate headers
192-
run: ./b2 headers
193-
working-directory: ../boost-root
194-
- name: Generate user config
195-
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam'
196-
working-directory: ../boost-root
197-
- name: Config info install
198-
run: ../../../b2 config_info_travis_install toolset=$TOOLSET
199-
working-directory: ../boost-root/libs/config/test
200-
- name: Config info
201-
run: ./config_info_travis
202-
working-directory: ../boost-root/libs/config/test
203-
- name: Test
204-
run: ../../../b2 toolset=$TOOLSET
205-
working-directory: ../boost-root/libs/type_traits/test
206143
macos:
207144
runs-on: macos-latest
208145
strategy:
209146
fail-fast: false
210147
matrix:
211148
toolset: [ clang ]
212-
standard: [ "03", 11, 14, 17, 2a ]
149+
standard: [ "03", 11, 14, 17, 20 ]
213150
steps:
214151
- uses: actions/checkout@v2
215152
with:
@@ -467,79 +404,3 @@ jobs:
467404
- name: Test
468405
run: ..\..\..\b2 --hash cxxstd=${{ matrix.standard }} toolset=msvc-14.2 define=CI_SUPPRESS_KNOWN_ISSUES cxxflags=-clr asynch-exceptions=on
469406
working-directory: ../boost-root/libs/type_traits/test
470-
ubuntu-cuda:
471-
runs-on: ubuntu-20.04
472-
strategy:
473-
fail-fast: false
474-
matrix:
475-
standard: [ 11, 14, 17 ]
476-
steps:
477-
- uses: actions/checkout@v2
478-
with:
479-
fetch-depth: '0'
480-
- uses: Jimver/[email protected]
481-
- uses: mstachniuk/ci-skip@v1
482-
with:
483-
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]'
484-
commit-filter-separator: ';'
485-
fail-fast: true
486-
- name: Add repository
487-
continue-on-error: true
488-
id: addrepo
489-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
490-
- name: Retry Add Repo
491-
continue-on-error: true
492-
id: retry1
493-
if: steps.addrepo.outcome=='failure'
494-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
495-
- name: Retry Add Repo 2
496-
continue-on-error: true
497-
id: retry2
498-
if: steps.retry1.outcome=='failure'
499-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
500-
- name: Install packages
501-
run: sudo apt install clang-10
502-
- name: Checkout main boost
503-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
504-
- name: Update tools/boostdep
505-
run: git submodule update --init tools/boostdep
506-
working-directory: ../boost-root
507-
- name: Copy files
508-
run: cp -r $GITHUB_WORKSPACE/* libs/type_traits
509-
working-directory: ../boost-root
510-
- name: Install deps
511-
run: python tools/boostdep/depinst/depinst.py type_traits
512-
working-directory: ../boost-root
513-
- name: Bootstrap
514-
run: ./bootstrap.sh
515-
working-directory: ../boost-root
516-
- name: Generate headers
517-
run: ./b2 headers
518-
working-directory: ../boost-root
519-
- name: nvcc version
520-
run: nvcc --version
521-
working-directory: ../boost-root/libs/config/test
522-
- name: Testing nvcc
523-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cpp" && nvcc -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_VIA_STATIC_ASSERT $file.cpp || break -1; done
524-
working-directory: ../boost-root/libs/type_traits/test
525-
- name: Testing nvcc+clang
526-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cpp" && nvcc --compiler-bindir=clang++ -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_VIA_STATIC_ASSERT $file.cpp || break -1; done
527-
working-directory: ../boost-root/libs/type_traits/test
528-
- name: Create .cu files
529-
run: for file in $(cat cuda/cuda_tests.txt); do cp $file.cpp $file.cu; done
530-
working-directory: ../boost-root/libs/type_traits/test
531-
- name: Testing nvcc on .cu files
532-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cu" && nvcc -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_VIA_STATIC_ASSERT $file.cu || break -1; done
533-
working-directory: ../boost-root/libs/type_traits/test
534-
- name: Testing nvcc+clang on .cu files
535-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cu" && nvcc --compiler-bindir=clang++ -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_VIA_STATIC_ASSERT $file.cu || break -1; done
536-
working-directory: ../boost-root/libs/type_traits/test
537-
- name: Testing clang on .cu files
538-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cu" && clang++ -nocudalib --no-cuda-version-check --cuda-gpu-arch=sm_75 -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_VIA_STATIC_ASSERT $file.cu || break -1; done
539-
working-directory: ../boost-root/libs/type_traits/test
540-
- name: Testing nvcc on .cu files
541-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cu" && nvcc -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_CUDA_DEVICE $file.cu || break -1; done
542-
working-directory: ../boost-root/libs/type_traits/test
543-
- name: Testing clang on .cu files
544-
run: for file in $(cat cuda/cuda_tests.txt); do echo "testing $file.cu" && clang++ -nocudalib --no-cuda-version-check --cuda-gpu-arch=sm_75 -std=c++${{ matrix.standard }} -I../../.. -c -DTEST_CUDA_DEVICE $file.cu || break -1; done
545-
working-directory: ../boost-root/libs/type_traits/test

0 commit comments

Comments
 (0)