#61: test code cleanup #15
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-18.04, 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: 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 |