From 30b3ab6f41f58772d99fae1d0bff307205d98e37 Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 4 Jul 2024 00:13:51 +0800 Subject: [PATCH] ci: restore v_apps_and_modules_compile_ci.yml (#21791) --- .../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 f10726603f..6b2c142bd5 100644 --- a/.github/workflows/v_apps_and_modules_compile_ci.yml +++ b/.github/workflows/v_apps_and_modules_compile_ci.yml @@ -153,18 +153,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' }}