From 1085f4587accb2e5d73aba79bbcc770c0b6ac655 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 27 Aug 2024 17:41:54 +0800 Subject: [PATCH] ci: restore v_apps_and_modules_compile_ci.yml (#22118) --- .../v_apps_and_modules_compile_ci.yml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/v_apps_and_modules_compile_ci.yml b/.github/workflows/v_apps_and_modules_compile_ci.yml index 0148458a3e..e4ab3d0763 100644 --- a/.github/workflows/v_apps_and_modules_compile_ci.yml +++ b/.github/workflows/v_apps_and_modules_compile_ci.yml @@ -155,18 +155,18 @@ jobs: echo "Build v-analyzer release" v build.vsh release - # - name: Format vlang/v-analyzer - # if: ${{ !cancelled() && steps.build.outcome == 'success' }} - # run: | - # cd /tmp/v-analyzer - # set +e - # v fmt -c . - # exit_code=$? - # if [[ $exit_code -ne 0 && $exit_code -ne 5 ]]; then - # # Don't fail if there are only internal errors (exit code 5). - # v fmt -diff . - # exit 1 - # fi + - name: Format vlang/v-analyzer + if: ${{ !cancelled() && steps.build.outcome == 'success' }} + run: | + cd /tmp/v-analyzer + set +e + v fmt -c . + exit_code=$? + if [[ $exit_code -ne 0 && $exit_code -ne 5 ]]; then + # Don't fail if there are only internal errors (exit code 5). + v fmt -diff . + exit 1 + fi - name: Build vlang/go2v if: ${{ !cancelled() && steps.build.outcome == 'success' && matrix.os != 'macos-14' }}