From eca632b902f07e7c5fa1773c93d3e234ba981849 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周一, 16 1月 2023 22:42:28 +0800 Subject: [PATCH] doc: update coverage adn build status badge --- .github/workflows/ubuntu.yml | 48 +++++++++++++----------------------------------- 1 files changed, 13 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c65bd89..0ddd13a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -7,11 +7,8 @@ steps: - uses: actions/checkout@v2 - - name: allow_x86 - run: sudo dpkg --add-architecture i386 - - name: install_dependencies - run: sudo apt-get install libcunit1-dev clang gcc-multilib libcunit1-dev:i386 + run: sudo apt-get install libcunit1-dev clang lcov - name: make run: make clean all @@ -37,39 +34,20 @@ LDFLAGS: -g -fsanitize=address run: make clean test - - name: gcc_x86 - env: - CFLAGS: -m32 - LDFLAGS: -m32 - run: make clean test - - - name: gcc_x86_c89 - env: - CFLAGS: -m32 -std=c89 - LDFLAGS: -m32 - run: make clean test - - - name: gcc_x86_c90 - env: - CFLAGS: -m32 -std=c90 - LDFLAGS: -m32 - run: make clean test - - - name: gcc_x86_c99 - env: - CFLAGS: -m32 -std=c99 - LDFLAGS: -m32 - run: make clean test - - - name: gcc_x86_gnu99 - env: - CFLAGS: -m32 -std=gnu99 - LDFLAGS: -m32 - run: make clean test - - name: coverage env: CFLAGS: -fprofile-arcs -ftest-coverage LDFLAGS: -lgcov run: make clean all test - + + - name: lcov_capture + run: lcov --capture --directory libscpi/ --output-file lcov.info + + - name: lcov_cleanup + run: lcov --remove lcov.info '*/test/*' --output-file lcov.info + + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./lcov.info -- Gitblit v1.9.1