build(deps): bump coverallsapp/github-action from 2.3.3 to 2.3.4 #78
Workflow file for this run
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: ci | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
autotools: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare | |
run: | | |
sudo apt update -qq | |
sudo apt install -qq check lcov | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Build | |
run: | | |
./autogen.sh | |
./configure --enable-check --enable-debug --enable-gcov | |
make V=1 | |
- name: Install | |
run: sudo make install | |
- name: Run tests | |
run: make check | |
- name: Collect coverage | |
run: lcov --capture -d '.' --exclude '/usr*' -o coverage.info | |
- name: Upload coverage | |
if: github.repository == 'c9s/r3' | |
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 # v2.3.4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: coverage.info | |
format: lcov | |
cmake: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare | |
run: | | |
sudo apt update -qq | |
sudo apt install -qq check ninja-build | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Build and test | |
run: | | |
mkdir build && cd build | |
cmake -GNinja .. | |
ninja -v | |
ctest --verbose | |
sanitizers: | |
name: ${{ matrix.sanitizer }}-sanitizer [${{ matrix.compiler }}] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [gcc, clang] | |
sanitizer: [thread, undefined, leak, address] | |
steps: | |
- name: Prepare | |
run: | | |
sudo apt update -qq | |
sudo apt install -qq check | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
mkdir build && cd build | |
CFLAGS="-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all -fno-omit-frame-pointer" cmake .. | |
VERBOSE=1 make all | |
- name: Test | |
run: | | |
cd build | |
ctest --verbose |