Skip to content

Compose IrcNamesMessage per channel #125

Compose IrcNamesMessage per channel

Compose IrcNamesMessage per channel #125

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ${{matrix.os}}
strategy:
matrix:
config: [shared, static]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{steps.cache-qt.outputs.cache-hit}}
- name: Git Checkout
uses: actions/checkout@v1
- name: Build
run: |
qmake -v
./configure -verbose -config ${{matrix.config}}
make -j2
if: matrix.os != 'windows-latest'
- name: Build
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
qmake -v
qmake -config verbose -config ${{matrix.config}}
set CL=/MP
nmake
shell: cmd
if: matrix.os == 'windows-latest'
- name: Run Tests
run: make check
if: matrix.os == 'ubuntu-latest'
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{steps.cache-qt.outputs.cache-hit}}
- name: Install LCOV
run: sudo apt install lcov
- name: Git Checkout
uses: actions/checkout@v1
- name: Configure
run: |
qmake -v
./configure -verbose -config coverage -config no_examples
- name: Build
run: make -j2
- name: Measure Coverage
run: |
make coverage
cat coverage/Irc*.cov > coverage/lcov.info
- name: Upload Coverage
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/lcov.info