-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
145 additions
and
127 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 2020 Evan Miller | ||
# Copyright 2020 Matt Borland | ||
# Copyright 2021 John Maddock | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) | ||
|
||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
release: | ||
types: [published, created, edited] | ||
jobs: | ||
ubuntu-jammy: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: [ g++-12 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
- uses: mstachniuk/ci-skip@v1 | ||
with: | ||
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' | ||
commit-filter-separator: ';' | ||
fail-fast: true | ||
- name: Set TOOLSET | ||
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV | ||
- name: Add repository | ||
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" | ||
- name: Install packages | ||
run: sudo apt install g++-12 git xsltproc docbook-xsl docbook-xml | ||
- name: Checkout main boost | ||
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root | ||
- name: Update tools/boostdep | ||
run: git submodule update --init | ||
working-directory: ../boost-root | ||
- name: Copy files | ||
run: cp -r $GITHUB_WORKSPACE/* tools/bcp | ||
working-directory: ../boost-root | ||
- name: Bootstrap | ||
run: ./bootstrap.sh | ||
working-directory: ../boost-root | ||
- name: Generate headers | ||
run: ./b2 headers | ||
working-directory: ../boost-root | ||
- name: Generate user config | ||
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} ;" > ~/user-config.jam' | ||
working-directory: ../boost-root | ||
- name: Config info | ||
run: ./b2 libs/config/test//print_config_info | ||
working-directory: ../boost-root | ||
- name: Test | ||
run: ./ci_script.sh | ||
working-directory: ../boost-root/tools/bcp/test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
# Copyright (C) 2022 John Maddock | ||
# | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
# boostinspect:notab - Tabs are required for the Makefile. | ||
|
||
# boost-root: | ||
cd ../../.. | ||
./b2 -j3 tools/bcp || { echo './b2 -j3 tools/bcp failed' ; exit 1; } | ||
rm -rf ../bcp-output | ||
mkdir ../bcp-output || { echo 'mkdir failed' ; exit 1; } | ||
./dist/bin/bcp program_options build ../bcp-output || { echo './dist/bin/bcp program_options build ../bcp-output failed' ; exit 1; } | ||
|
||
# tests: | ||
cd ../bcp-output | ||
ls -l | ||
./bootstrap.sh || { echo './bootstrap.sh failed' ; exit 1; } | ||
./b2 -j3 libs/program_options/build || { echo './b2 -j3 libs/program_options/build failed' ; exit 1; } | ||
./b2 -j3 --with-program_options || { echo './b2 -j3 --with-program_options failed' ; exit 1; } | ||
./b2 -j3 || { echo './b2 -j3 failed' ; exit 1; } | ||
|
||
# run inspect: | ||
cd ../boost-root | ||
echo "using xsltproc ;" | tee -a $HOME/user-config.jam | ||
echo "using boostbook : /usr/share/xml/docbook/stylesheet/docbook-xsl : /usr/share/sgml/docbook/dtd/xml/4.2 ;" | tee -a $HOME/user-config.jam | ||
cd tools/inspect/build | ||
../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release dist-bin || { echo 'building inspect failed' ; exit 1; } | ||
cd ../../bcp/doc | ||
rm -rf html | ||
../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release || { echo 'building docs failed' ; exit 1; } | ||
../../../dist/bin/inspect -text || { echo 'inspect failed' ; exit 1; } | ||
|