Support DEC_TRIVIAL_DEFAULT_CONSTRUCTIBLE (#63) #21
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: decimal_for_cpp | |
on: [push] | |
jobs: | |
linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libboost-all-dev | |
- name: Build c++11 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=11 ../ | |
make VERBOSE=1 && ./test_runner | |
- name: Build c++14 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=14 ../ | |
make VERBOSE=1 && ./test_runner | |
- name: Build c++17 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=17 ../ | |
make VERBOSE=1 && ./test_runner | |
macos: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
brew install boost | |
- name: Update dependencies | |
run: | | |
brew upgrade boost cmake | |
- name: Build c++11 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=11 ../ | |
make VERBOSE=1 && ./test_runner | |
- name: Build c++14 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=14 ../ | |
make VERBOSE=1 && ./test_runner | |
- name: Build c++17 | |
run: | | |
cd ${{ github.workspace }} | |
rm -rf b | |
mkdir -p b | |
cd b | |
cmake -DCMAKE_CXX_STANDARD=17 ../ | |
make VERBOSE=1 && ./test_runner |