Add ubuntu-14.04 build and test workflow (#1131)

* Add ubuntu-14.04 build and test workflow

* avoid '.' in job name

* no need for fail fast

* fix workflow syntax

* install some stuff

* better compiler installations

* update before install

* just say yes

* trying to match up some paths

* Difference between runner and github context in container?

* Try some judicious logging

* cmake 3.5+ required

* specific compiler versions

* need git for googletest

* Disable testing on old compilers

* disable testing properly
This commit is contained in:
Dominic Hamon 2021-05-07 12:39:04 +01:00 committed by GitHub
parent a2e8a8a9db
commit a53b8853aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ on:
branches: [ master ]
jobs:
# TODO: add job using container ubuntu:14.04 with and without g++-6
# TODO: add 32-bit builds (g++ and clang++) for ubuntu (requires g++-multilib and libc6:i386)
# TODO: add coverage build (requires lcov)
# TODO: add clang + libc++ builds for ubuntu
@ -53,3 +52,45 @@ jobs:
shell: bash
working-directory: ${{ runner.workspace }}/_build
run: ctest -C ${{ matrix.build_type }} -VV
# TODO: add compiler g++-6 to ubuntu-14.04 job
# TODO: enable testing for g++-6 compiler
ubuntu-14_04:
name: ubuntu-14.04.${{ matrix.build_type }}.${{ matrix.compiler }}
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
build_type: ['Release', 'Debug']
compiler: [g++-4.8, clang++-3.6]
container: ubuntu:14.04
steps:
- uses: actions/checkout@v2
- name: install required bits
run: sudo apt update && sudo apt -y install clang-3.6 cmake3 g++-4.8 git
- name: create build environment
run: cmake -E make_directory $GITHUB_WORKSPACE/_build
- name: configure cmake
env:
CXX: ${{ matrix.compiler }}
shell: bash
working-directory: ${{ github.workspace }}/_build
run: >
cmake $GITHUB_WORKSPACE
-DBENCHMARK_ENABLE_TESTING=off
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
#-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
- name: build
shell: bash
working-directory: ${{ github.workspace }}/_build
run: cmake --build . --config ${{ matrix.build_type }}
# - name: test
# shell: bash
# working-directory: ${{ github.workspace }}/_build
# run: ctest -C ${{ matrix.build_type }} -VV