Rewritten hostname extraction from resolver URL #43
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: CMake | |
on: [push, pull_request] | |
jobs: | |
build: | |
# The CMake configure and build commands are platform agnostic and should work equally | |
# well on Windows or Mac. You can convert this to a matrix build if you need | |
# cross-platform coverage. | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [gcc-12, clang-15] | |
steps: | |
- uses: actions/checkout@main | |
- name: Update APT | |
run: sudo apt-get update | |
- name: Setup Dependencies | |
run: sudo apt-get install cmake libc-ares-dev libcurl4-openssl-dev libev-dev build-essential clang-tidy-15 ${{ matrix.compiler }} dnsutils python3-pip valgrind | |
- name: Setup Robot Framework | |
run: sudo pip3 install robotframework | |
- name: Set clang-tidy | |
run: sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100 | |
- name: Configure CMake | |
env: | |
CC: ${{ matrix.compiler }} | |
run: cmake -D CMAKE_BUILD_TYPE=Debug -B ${{github.workspace}}/ | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
# Build your program with the given configuration | |
run: make -C ${{github.workspace}}/ | |
- name: Test | |
run: make -C ${{github.workspace}}/ test ARGS="--verbose" | |
- uses: actions/upload-artifact@v3 | |
if: ${{ success() || failure() }} | |
with: | |
name: robot-logs-${{ matrix.compiler }} | |
path: | | |
${{github.workspace}}/tests/robot/*.html | |
${{github.workspace}}/tests/robot/valgrind-*.log |