7.2.0 #264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
with: | |
fetch-depth: 0 | |
- 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: | |
needs: ubuntu-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- 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.CODECOV_TOKEN }} |