From ecfdc2febd52a412b2448df079718fe2d322a117 Mon Sep 17 00:00:00 2001 From: Dom Chen Date: Sun, 5 Nov 2023 21:53:31 +0800 Subject: [PATCH 1/5] Add clang-format to env cache. --- .github/workflows/autotest.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index 80f0206..be4a08f 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -35,7 +35,11 @@ jobs: /usr/local/Cellar/python-markupsafe /usr/local/lib/python3.12/site-packages/lxml /usr/local/lib/python3.12/site-packages/markupsafe - key: tgfx-environment-autotest-20231027 + /usr/local/bin/clang-format + /usr/local/bin/git-clang-format + /usr/local/bin/clang-format-diff.py + /usr/local/lib/python3.12/site-packages/clang_format + key: tgfx-environment-autotest-20231105 restore-keys: tgfx-environment-autotest- - name: Get Third-Party Cache @@ -77,7 +81,7 @@ jobs: file: result/coverage.xml - name: Save Environment Cache - if: ${{ (github.event_name == 'push') && (steps.environment-cache.outputs.cache-hit != 'true') }} +# if: ${{ (github.event_name == 'push') && (steps.environment-cache.outputs.cache-hit != 'true') }} uses: actions/cache/save@v3 with: path: | @@ -94,7 +98,11 @@ jobs: /usr/local/Cellar/python-markupsafe /usr/local/lib/python3.12/site-packages/lxml /usr/local/lib/python3.12/site-packages/markupsafe - key: tgfx-environment-autotest-20231027 + /usr/local/bin/clang-format + /usr/local/bin/git-clang-format + /usr/local/bin/clang-format-diff.py + /usr/local/lib/python3.12/site-packages/clang_format + key: tgfx-environment-autotest-20231105 - name: Save Third-Party Cache if: ${{ (github.event_name == 'push') && (steps.third-party-cache.outputs.cache-hit != 'true') }} From 3f9380e313e39523653caf7f6fe33ba6ab6da97d Mon Sep 17 00:00:00 2001 From: Dom Chen Date: Sun, 5 Nov 2023 22:06:24 +0800 Subject: [PATCH 2/5] revert the commented line. --- .github/workflows/autotest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index be4a08f..f0d4386 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -81,7 +81,7 @@ jobs: file: result/coverage.xml - name: Save Environment Cache -# if: ${{ (github.event_name == 'push') && (steps.environment-cache.outputs.cache-hit != 'true') }} + if: ${{ (github.event_name == 'push') && (steps.environment-cache.outputs.cache-hit != 'true') }} uses: actions/cache/save@v3 with: path: | From a0cd7d5ab66fbf774102f736e0f39cb7c4043162 Mon Sep 17 00:00:00 2001 From: Dom Chen Date: Sun, 5 Nov 2023 22:08:39 +0800 Subject: [PATCH 3/5] test --- .github/workflows/autotest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index f0d4386..757c0ab 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -60,6 +60,8 @@ jobs: - name: Check Code Format run: | + ls /usr/local/lib/ + ls /usr/local/lib/python3.12/site-packages/ chmod +x codeformat.sh ./codeformat.sh shell: bash From cb181b036f62f6b094326794559fa061e4a2fd31 Mon Sep 17 00:00:00 2001 From: Dom Chen Date: Sun, 5 Nov 2023 22:13:05 +0800 Subject: [PATCH 4/5] test --- .github/workflows/autotest.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index 757c0ab..6cd58d9 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -60,8 +60,11 @@ jobs: - name: Check Code Format run: | - ls /usr/local/lib/ - ls /usr/local/lib/python3.12/site-packages/ + ls /usr/local/bin/ + echo "ls /usr/local/lib/python3.10/site-packages/" + ls /usr/local/lib/python3.10/site-packages/ + echo "ls /usr/local/lib/python3.11/site-packages/" + ls /usr/local/lib/python3.11/site-packages/ chmod +x codeformat.sh ./codeformat.sh shell: bash From 8b4cc0693df3458ea238b46375d793c3eae695a5 Mon Sep 17 00:00:00 2001 From: Dom Chen Date: Sun, 5 Nov 2023 22:17:55 +0800 Subject: [PATCH 5/5] test --- .github/workflows/autotest.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index 6cd58d9..e268864 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -60,13 +60,9 @@ jobs: - name: Check Code Format run: | - ls /usr/local/bin/ - echo "ls /usr/local/lib/python3.10/site-packages/" - ls /usr/local/lib/python3.10/site-packages/ - echo "ls /usr/local/lib/python3.11/site-packages/" - ls /usr/local/lib/python3.11/site-packages/ chmod +x codeformat.sh ./codeformat.sh + pip3 show clang-format shell: bash - name: Run Autotest