Remove broken riscv64 and try and skip arm-gcc. #5
This file contains hidden or 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
| # Copyright 2023 Nikita Kniazev | |
| # | |
| # Use, modification, and distribution are subject to the | |
| # Boost Software License, Version 1.0. (See accompanying file LICENSE.txt) | |
| name: "BSD" | |
| on: | |
| push: | |
| paths-ignore: &ignore_paths | |
| - ".circleci/**" | |
| - ".drone.star" | |
| - ".semaphore/**" | |
| - ".travis.yml" | |
| - "appveyor.yml" | |
| - "azure-pipelines.yml" | |
| - ".ci/azp-*.yml" | |
| pull_request: | |
| paths-ignore: *ignore_paths | |
| jobs: | |
| FreeBSD: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: ["x86_64", "aarch64"] | |
| toolset: | |
| - { cxx: "g++16", package: "lang/gcc16", b2tool: gcc } | |
| - { cxx: "g++15", package: "lang/gcc15", b2tool: gcc } | |
| - { cxx: "g++14", package: "lang/gcc14", b2tool: gcc } | |
| - { cxx: "g++13", package: "gcc13", b2tool: gcc } | |
| - { cxx: "g++12", package: "gcc12", b2tool: gcc } | |
| - { cxx: "clang++21", package: "devel/llvm21", b2tool: clang } | |
| - { cxx: "clang++20", package: "devel/llvm20", b2tool: clang } | |
| - { cxx: "clang++19", package: "devel/llvm19", b2tool: clang } | |
| - { cxx: "clang++18", package: "devel/llvm18", b2tool: clang } | |
| - { cxx: "clang++17", package: "devel/llvm17", b2tool: clang } | |
| - { cxx: "clang++16", package: "devel/llvm16", b2tool: clang } | |
| - { cxx: "clang++15", package: "devel/llvm15", b2tool: clang } | |
| - { cxx: "clang++14", package: "devel/llvm14", b2tool: clang } | |
| - { cxx: "clang++13", package: "devel/llvm13", b2tool: clang } | |
| - { cxx: "clang++12", package: "devel/llvm12", b2tool: clang } | |
| exclude: | |
| - { arch: "aarch64", toolset: { b2tool: gcc } } | |
| steps: | |
| - name: Condition | |
| id: condition | |
| run: | | |
| echo "SKIP=${{ case( | |
| matrix.arch == 'aarch64' && matrix.b2tool == 'gcc', 1, | |
| 0 | |
| )}}" >> "$GITHUB_OUTPUT" | |
| - name: Checkout | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| uses: actions/checkout@main | |
| - name: Start VM | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| id: vm | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| arch: ${{ matrix.arch }} | |
| usesh: true | |
| custom-shell-name: vmsh | |
| - name: Info | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| shell: vmsh {0} | |
| run: | | |
| echo ${PWD} | |
| whoami | |
| env | |
| freebsd-version | |
| uname -a | |
| sysctl hw.ncpu | |
| sysctl hw.physmem | |
| sysctl hw.usermem | |
| - name: Install | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| shell: vmsh {0} | |
| run: | | |
| uname -a | |
| export ASSUME_ALWAYS_YES=YES | |
| pkg bootstrap | |
| pkg install ${{ matrix.toolset.package }} | |
| pkg install python3 | |
| - name: Setup | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| shell: vmsh {0} | |
| run: | | |
| set -e | |
| cd src/engine | |
| ./build.sh --cxx=${{ matrix.toolset.cxx }} ${{ matrix.toolset.b2tool }} | |
| ./b2 -v | |
| cd ../.. | |
| - name: Run | |
| if: ${{ steps.condition.outputs.SKIP == 0 }} | |
| shell: vmsh {0} | |
| run: | | |
| set -e | |
| CXX_PATH=`which ${{ matrix.toolset.cxx }}` | |
| cd test | |
| echo "using ${{ matrix.toolset.b2tool }} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam | |
| python3 grep.py ${{ matrix.toolset.b2tool }} | |
| python3 test_all.py ${{ matrix.toolset.b2tool }} | |
| cd .. |