Skip to content

Fix GitHub Actions runs #126

Fix GitHub Actions runs

Fix GitHub Actions runs #126

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: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
- name: Git Checkout
uses: actions/checkout@v4
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
if: matrix.os == 'windows-latest'
- name: Build
run: |
qmake -v
./configure -verbose -config ${{matrix.config}}
make -j2
if: matrix.os != 'windows-latest'
- name: Build
run: |
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: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
- name: Install LCOV
run: sudo apt install lcov
- name: Git Checkout
uses: actions/checkout@v4
- 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