Update FreeBSD Clang to 15 #414
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: Ubuntu-GCC | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
except: [1, 0] | |
pic: [1, 0] | |
rtti: [1, 0] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup gcc | |
run: | | |
sudo update-alternatives \ | |
--install /usr/bin/gcc gcc /usr/bin/gcc-10 1000 \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \ | |
--slave /usr/bin/gcov gcov /usr/bin/gcov-10 \ | |
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \ | |
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10 | |
- name: init submodules | |
run: git submodule init | |
- name: update submodules | |
run: git submodule update | |
- name: make | |
run: make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} | |
- name: test | |
run: make -j2 EXCEPTIONS=${{matrix.except}} PIC=${{matrix.pic}} RTTI=${{matrix.rtti}} check | |
- name: coverage | |
run: make -j2 DEBUG=1 COVERAGE=1 check | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests |