Skip to content

Commit 97de5ab

Browse files
authored
Fix the CI. (#151)
* Bump clang-format version to work on ubuntu-latest Signed-off-by: Martijn Stevenson <mstevenson@google.com> * Add daily CI run for proxy-wasm-cpp-sdk Signed-off-by: Martijn Stevenson <mstevenson@google.com> * Ignore BUILD files in license checks Signed-off-by: Martijn Stevenson <mstevenson@google.com> * Use known CI platform: ubuntu-latest to ubuntu-22.04 Signed-off-by: Martijn Stevenson <mstevenson@google.com> --------- Signed-off-by: Martijn Stevenson <mstevenson@google.com>
1 parent 95bb82c commit 97de5ab

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/cpp.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ on:
2828
- 'envoy-release/**'
2929
- 'istio-release/**'
3030

31+
schedule:
32+
- cron: '0 0 * * *'
33+
3134
jobs:
3235

3336
format:
34-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-22.04
3538

3639
steps:
3740
- uses: actions/checkout@v2
@@ -41,8 +44,8 @@ jobs:
4144

4245
- name: Format (clang-format)
4346
run: |
44-
sudo apt-get install clang-format-9
45-
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-9 -i
47+
sudo apt-get install clang-format-12
48+
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i
4649
git diff --exit-code
4750
4851
- name: Format (buildifier)
@@ -55,10 +58,10 @@ jobs:
5558
run: |
5659
go install github.com/google/addlicense@latest
5760
export PATH=$PATH:$(go env GOPATH)/bin
58-
addlicense -check .
61+
addlicense -ignore="**/BUILD" -check .
5962
6063
protobuf:
61-
runs-on: ubuntu-latest
64+
runs-on: ubuntu-22.04
6265

6366
steps:
6467
- uses: actions/checkout@v2
@@ -81,7 +84,7 @@ jobs:
8184
git diff --exit-code -G "(^[^ /])|(^\s+[^\*])" *.pb.{cc,h}
8285
8386
build:
84-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-22.04
8588

8689
steps:
8790
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy