[feat, perf] add ULBN_CONF_BIG_INT
; accelerate _ulbn_add_
and `_u…
#66
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
name: test-cxx20 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Release, RelWithDebInfo, MinSizeRel] | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
compiler: [[clang, clang++], [gcc, g++]] | |
include: | |
- build_type: Release | |
os: windows-latest | |
compiler: [cl, cl] | |
- build_type: RelWithDebInfo | |
os: windows-latest | |
compiler: [cl, cl] | |
- build_type: MinSizeRel | |
os: windows-latest | |
compiler: [cl, cl] | |
env: | |
proj_type: ${{ (matrix.os == 'windows-latest' && matrix.compiler[0] != 'cl') && '-G "MinGW Makefiles"' || '' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set reusable strings | |
id: strings | |
shell: bash | |
run: | | |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | |
- name: configure CMake | |
run: > | |
cmake ${{ env.proj_type }} | |
-B ${{ github.workspace }}/build -S ${{ github.workspace }} | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
-DCMAKE_C_COMPILER=${{ matrix.compiler[0] }} | |
-DCMAKE_CXX_COMPILER=${{ matrix.compiler[1] }} | |
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install | |
- name: build | |
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }} | |
- name: test | |
working-directory: ${{ steps.strings.outputs.build-output-dir }} | |
run: ctest --output-on-failure --build-config ${{ matrix.build_type }} --parallel 8 |