From 249bdf4a23e3bc99108a940321a15c8de5fad969 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Thu, 7 Sep 2023 20:31:15 -0700 Subject: [PATCH 1/2] chore: remove boost ci --- .github/workflows/deploy-documentation.yml | 37 ---------------- .github/workflows/test-osx.yml | 45 ------------------- .github/workflows/test-ubuntu.yml | 51 ---------------------- .github/workflows/test-windows.yml | 49 --------------------- 4 files changed, 182 deletions(-) delete mode 100644 .github/workflows/deploy-documentation.yml delete mode 100644 .github/workflows/test-osx.yml delete mode 100644 .github/workflows/test-ubuntu.yml delete mode 100644 .github/workflows/test-windows.yml diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy-documentation.yml deleted file mode 100644 index 065945137b..0000000000 --- a/.github/workflows/deploy-documentation.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: deploy documentation - -on: [push] - -jobs: - deploy: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: setup - run: | - sudo apt-get update - sudo apt-get install \ - libboost1.71-tools-dev \ - python3 \ - python3-numpy \ - python3-sphinx \ - xsltproc \ - docbook-xsl - sudo python3 -m pip install --upgrade pip - sudo python3 -m pip install faber - - name: build - run: | - sed -e "s/\$PYTHON/python3/g" .ci/faber > ~/.faber - faber --builddir=build doc.html - if [ "${GITHUB_REF##*/}" == master ]; then - echo "destination_dir=doc/html" >> $GITHUB_ENV - else - echo "destination_dir=doc/develop/html" >> $GITHUB_ENV - fi - - name: deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: build/doc/html - destination_dir: ${{ env.destination_dir }} - keep_files: true diff --git a/.github/workflows/test-osx.yml b/.github/workflows/test-osx.yml deleted file mode 100644 index 19928d875b..0000000000 --- a/.github/workflows/test-osx.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Test OSX - -on: [push, pull_request] - -jobs: - build: - runs-on: macOS-latest - - strategy: - fail-fast: false - matrix: - python-version: [3.6] - cxx: [clang++] - std: [c++98, c++11, c++14] # TODO: c++17 is failing ! - - steps: - - uses: actions/checkout@v2 - - name: setup python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: setup prerequisites - run: | - brew install boost - python -m pip install --upgrade pip - python -m pip install setuptools faber - - name: build - run: | - python --version - ${{ matrix.cxx }} --version - faber -v - sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber - faber \ - --builddir=build \ - cxx.name=${{ matrix.cxx }} \ - cxxflags=-std=${{ matrix.std }} \ - -j`sysctl -n hw.ncpu` - - name: test - run: | - faber \ - --builddir=build\ - cxx.name=${{ matrix.cxx }} \ - cxxflags=-std=${{ matrix.std }} \ - -j`sysctl -n hw.ncpu` \ - test.report diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml deleted file mode 100644 index dab98aee4a..0000000000 --- a/.github/workflows/test-ubuntu.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Test Ubuntu - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - python: [python, python3] - cxx: [g++, clang++] - std: [c++98, c++11, c++14, c++17] - include: - # Add the appropriate docker image for each compiler. - # The images from teeks99/boost-python-test already have boost::python - # pre-reqs installed, see: - # https://github.com/teeks99/boost-python-test-docker - - cxx: clang++ - docker-img: teeks99/boost-python-test:clang-12_1.76.0 - - cxx: g++ - docker-img: teeks99/boost-python-test:gcc-10_1.76.0 - - container: - image: ${{ matrix.docker-img }} - - steps: - - uses: actions/checkout@v2 - - - name: build - run: | - ${{ matrix.python }} --version - ${{ matrix.cxx }} --version - faber -v - sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber - faber \ - --with-boost-include=${BOOST_PY_DEPS} \ - --builddir=build \ - cxx.name=${{ matrix.cxx }} \ - cxxflags=-std=${{ matrix.std }} \ - -j`nproc` - - name: test - run: | - faber \ - --with-boost-include=${BOOST_PY_DEPS} \ - --builddir=build \ - cxx.name=${{ matrix.cxx }} \ - cxxflags=-std=${{ matrix.std }} \ - -j`nproc` \ - test.report diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml deleted file mode 100644 index 36c4a8e4f0..0000000000 --- a/.github/workflows/test-windows.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Test Windows - -on: [push, pull_request] - -jobs: - build: - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - python-version: [3.7] - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - uses: microsoft/setup-msbuild@v1.1 - - name: setup boost prerequisites - uses: lukka/run-vcpkg@v6 - with: - vcpkgGitCommitId: '88b1071e39f13b632644d9d953738d345a4ac055' - vcpkgDirectory: '${{ runner.workspace }}/vcpkg' - vcpkgTriplet: x64-windows - vcpkgArguments: > - boost-config - boost-core - boost-function - boost-graph - boost-iterator - boost-lexical-cast - boost-mpl - boost-preprocessor - boost-smart-ptr - boost-static-assert - boost-align - - name: setup faber - run: | - python -m pip install --upgrade pip - python -m pip install setuptools faber numpy - faber --info=tools cxx - - name: build - shell: cmd - run: | - faber --builddir=build cxx.name=msvc --with-boost-include=${{ runner.workspace }}/vcpkg/installed/x64-windows/include -j4 - - name: test - shell: cmd - run: | - faber --builddir=build cxx.name=msvc --with-boost-include=${{ runner.workspace }}/vcpkg/installed/x64-windows/include -j4 test.report From 77f9f86442bb4421f7f898014839313e0f17d332 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Thu, 7 Sep 2023 20:31:19 -0700 Subject: [PATCH 2/2] chore: gitignore bazel related files --- .gitignore | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 06ea5d43c8..befba87c43 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,11 @@ bin.SCons *.pyc *~ -\#*\# \ No newline at end of file +\#*\# + +# Bazel +/bazel-* +/external +/.cache +/compile_commands.json +user.bazelrc