Skip to content

Fix build on latest c-ares (#331) #44

Fix build on latest c-ares (#331)

Fix build on latest c-ares (#331) #44

Workflow file for this run

name: Lint source code
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
unix:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Trantor source code
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: (Linux) Install dependencies
run: |
# Installing packages might fail as the github image becomes outdated
sudo apt update
sudo apt install dos2unix clang-format
- name: Lint
if: matrix.os == 'ubuntu-20.04'
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: bash
run: ./format.sh && git diff --exit-code