Skip to content

Fix github action codecov #10 #167

Fix github action codecov #10

Fix github action codecov #10 #167

Workflow file for this run

name: CLIgen CI
on:
push:
branches:
- master
- test-actions
pull_request:
branches: [ master ]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install expect
run: sudo apt install -y expect
- name: configure
run: ./configure
- name: make
run: make
- name: make install
run: sudo make install
- name: ldconfig
run: sudo ldconfig
- name: make test
run: make test
ubuntu-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install expect
run: sudo apt install -y expect
- name: configure w coverage
run: ./configure CPPFLAGS="-fprofile-arcs -ftest-coverage -O0" CFLAGS="" LDFLAGS="-fprofile-arcs -lgcov"
- name: make
run: make
- name: make install
run: sudo make install
- name: ldconfig
run: sudo ldconfig
- name: make test
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
token: ${{ secrets.ORG_CODECOV }}