mirror of https://github.com/c-ares/c-ares.git
Reorganize source tree (#822)
c-ares is getting larger these days and we keep adding source files to the same directory so it can be hard to differentiate core c-ares implementation from library/utility functions. Lets make some subdirectories to help with that and shuffle files around. Fix By: Brad House (@bradh352)pull/824/head
parent
58ae7e809a
commit
130fd4794b
70 changed files with 271 additions and 119 deletions
@ -0,0 +1,38 @@ |
||||
# Copyright (C) The c-ares project and its contributors |
||||
# SPDX-License-Identifier: MIT |
||||
name: Coveralls |
||||
on: |
||||
push: |
||||
pull_request: |
||||
|
||||
jobs: |
||||
build: |
||||
name: Coveralls |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- uses: awalsh128/cache-apt-pkgs-action@latest |
||||
with: |
||||
packages: lcov libgmock-dev ninja-build |
||||
version: 1.0 |
||||
- name: Build |
||||
run: | |
||||
mkdir build |
||||
cd build |
||||
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCARES_BUILD_TESTS=ON -DCARES_COVERAGE=ON -DCARES_BUILD_TOOLS=OFF -G Ninja .. |
||||
ninja |
||||
- name: Test |
||||
shell: bash |
||||
run: | |
||||
cd build |
||||
./bin/arestest -v -4 --gtest_filter='-*LiveSearchTXT*:*LiveSearchANY*' |
||||
- name: Generate Coverage |
||||
shell: bash |
||||
run: | |
||||
cd build |
||||
ninja coverage |
||||
- name: Upload to Coveralls |
||||
uses: coverallsapp/github-action@master |
||||
with: |
||||
path-to-lcov: ${{runner.workspace}}/c-ares/build/coverage.info |
||||
github-token: ${{ secrets.GITHUB_TOKEN }} |
@ -1,7 +1,7 @@ |
||||
# Copyright (C) The c-ares project and its contributors |
||||
# SPDX-License-Identifier: MIT |
||||
SAMPLESOURCES = ares_getopt.c \ |
||||
../lib/ares_strcasecmp.c |
||||
../lib/str/ares_strcasecmp.c |
||||
|
||||
SAMPLEHEADERS = ares_getopt.h \ |
||||
../lib/ares_strcasecmp.h |
||||
../lib/str/ares_strcasecmp.h |
||||
|
Loading…
Reference in new issue