From 9188de7b91731479bcdbafdb46d822ced73d14f7 Mon Sep 17 00:00:00 2001 From: Martijn Stevenson Date: Wed, 26 Apr 2023 21:22:19 +0000 Subject: [PATCH 1/4] Bump clang-format version to work on ubuntu-latest Signed-off-by: Martijn Stevenson --- .github/workflows/cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 85e7017..583ba4c 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -41,8 +41,8 @@ jobs: - name: Format (clang-format) run: | - sudo apt-get install clang-format-9 - find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-9 -i + sudo apt-get install clang-format-12 + find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i git diff --exit-code - name: Format (buildifier) From f8a7344b2bd550462d8c33fd8c0c44ee36ed3922 Mon Sep 17 00:00:00 2001 From: Martijn Stevenson Date: Wed, 26 Apr 2023 21:25:50 +0000 Subject: [PATCH 2/4] Add daily CI run for proxy-wasm-cpp-sdk Signed-off-by: Martijn Stevenson --- .github/workflows/cpp.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 583ba4c..29e0ebd 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -28,6 +28,9 @@ on: - 'envoy-release/**' - 'istio-release/**' + schedule: + - cron: '0 0 * * *' + jobs: format: From d6e53b496c93fa12f159536efd0f5797b33133ad Mon Sep 17 00:00:00 2001 From: Martijn Stevenson Date: Thu, 27 Apr 2023 13:08:07 +0000 Subject: [PATCH 3/4] Ignore BUILD files in license checks Signed-off-by: Martijn Stevenson --- .github/workflows/cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 29e0ebd..e3138f3 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -58,7 +58,7 @@ jobs: run: | go install github.com/google/addlicense@latest export PATH=$PATH:$(go env GOPATH)/bin - addlicense -check . + addlicense -ignore="**/BUILD" -check . protobuf: runs-on: ubuntu-latest From fab8b5e8c921f4a375a867b3ad80bba1e874693a Mon Sep 17 00:00:00 2001 From: Martijn Stevenson Date: Thu, 27 Apr 2023 20:50:40 +0000 Subject: [PATCH 4/4] Use known CI platform: ubuntu-latest to ubuntu-22.04 Signed-off-by: Martijn Stevenson --- .github/workflows/cpp.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index e3138f3..1563255 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -34,7 +34,7 @@ on: jobs: format: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -61,7 +61,7 @@ jobs: addlicense -ignore="**/BUILD" -check . protobuf: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -84,7 +84,7 @@ jobs: git diff --exit-code -G "(^[^ /])|(^\s+[^\*])" *.pb.{cc,h} build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v1