name: Tests

on: [push]

jobs:
  tests:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v1
      with:
        submodules: 'true'
    - name: build tests and run
      env:
        CC: gcc-9
        CXX: g++-9    
      run: |
        cd tests
        mkdir build && cd build
        cmake ..
        make
        cd ../
        ./build/tests -s

name: Tests

on: [push]

jobs:
  tests:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v1
      with:
        submodules: 'true'
    - name: setup
      run: |
        sudo apt install software-properties-common
        sudo add-apt-repository ppa:ubuntu-toolchain-r/test
        sudo apt install gcc-9 g++-9
        sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
    - name: build
      env:
        CC: gcc-9
        CXX: g++-9
      run: |
        cd tests && mkdir build && cd build
        cmake .. 
        make
    - name: run tests
      run: cd tests && ./build/tests -s
Revert to manually setting up GCC9
Revert to manually setting up GCC9

github's stock image makes problems with <filesystem>
even when we select gcc9
