Skip to content

Commit

Permalink
Merge 864fac4 into d2c9d38
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Mar 29, 2022
2 parents d2c9d38 + 864fac4 commit 306f174
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bazel-ci.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, windows-2019]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cmake-ci.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-18.04, windows-2016]
os: [macOS-latest, ubuntu-18.04, windows-2019]
dependencies: [submodule, vcpkg]
steps:
- name: Checkout source
Expand All @@ -29,6 +29,10 @@ jobs:
path: "~/.cache/vcpkg/archives"
key: vcpkg-${{ matrix.os }}

- name: Default to x64-windows vcpkg triplet
if: matrix.dependencies == 'vcpkg' && runner.os == 'Windows'
run: echo "VCPKG_DEFAULT_TRIPLET=x64-windows" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append

- name: Install vcpkg dependencies
if: matrix.dependencies == 'vcpkg'
run: vcpkg install benchmark civetweb curl[core] gtest zlib
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/linting.yml
Expand Up @@ -45,14 +45,16 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
sudo apt-get update
sudo apt-get install -y clang-format-11
# clang-format comes pre-installed
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
#- name: Install dependencies
# run: |
# sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
# sudo apt-get update
# sudo apt-get install -y clang-format-12

- name: Run clang-format
run: find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.cxx' -o -name '*.o' -o -name '*.h' -o -name '*.hpp' -o -name '*.hxx' \) -exec clang-format-11 -style=file -i {} \;
run: find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.cxx' -o -name '*.o' -o -name '*.h' -o -name '*.hpp' -o -name '*.hxx' \) -exec clang-format-12 -style=file -i {} \;

- name: Check for changes
run: git diff --exit-code

0 comments on commit 306f174

Please sign in to comment.