nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 172ce82f8484f597dc10411882ee34710eb80b1e
parent 0b1896650c2ba7100df450d698752090e6ba3b22
Author: Rolf Eike Beer <eike@sf-mail.de>
Date:   Sat,  7 Nov 2020 13:28:19 +0100

GitHub: also build on MacOS and with clang

Diffstat:
M.github/workflows/ccpp.yml | 24+++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml @@ -2,23 +2,37 @@ name: C/C++ CI on: push: - branches: [ master ] + branches: + - '*' pull_request: branches: [ master ] jobs: build: name: build​ - runs-on: ubuntu-latest + runs-on: ${{ matrix.host }} + strategy: + fail-fast: false + matrix: + cc: [gcc, clang] + host: [ubuntu-latest, macos-latest] steps: - name: checkout uses: actions/checkout@v2 + - name: test_deps - run: sudo apt-get install check + run: if [ "${OS}" = "macos-latest" ]; then brew install check; else sudo apt-get install check; fi + env: + OS: ${{ matrix.host }} + - name: configure - run: echo "cc -O2 -Wall -Wshadow -Werror=implicit-function-declaration" > conf-cc + run: echo "${CC} -O2 -fPIC -Wall -Wshadow -Werror=implicit-function-declaration" > conf-cc + env: + CC: ${{ matrix.cc }} + - name: make run: make it man - - name: make check + + - name: unittests run: make test