From 5e95b0720a43a2e7eb61a91ba181553a7fa5597b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 4 Jan 2025 15:37:10 +0200 Subject: [PATCH] ci: force all tools to build without warnings/notices in tools_ci.yml (#23371) --- .github/workflows/tools_ci.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tools_ci.yml b/.github/workflows/tools_ci.yml index 31c70aeda0ec39..1bc04a8fde1ee7 100644 --- a/.github/workflows/tools_ci.yml +++ b/.github/workflows/tools_ci.yml @@ -37,9 +37,11 @@ jobs: run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor - name: Code in cmd/ is formatted run: ./v fmt -verify cmd/ - - name: Test + - name: Check build-tools + run: ./v -N -W -check build-tools + - name: Test tools run: ./v test-self cmd - - name: Test (-cstrict) + - name: Test tools (-cstrict) if: ${{ matrix.cc != 'tcc' }} run: ./v -W -cstrict test-self cmd - name: Test sanitized @@ -72,9 +74,11 @@ jobs: - uses: actions/checkout@v4 - name: Build V run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor - - name: Test + - name: Check build-tools + run: ./v -N -W -check build-tools + - name: Test tools run: ./v test-self cmd - - name: Test (-cstrict) + - name: Test tools (-cstrict) run: ./v -W -cstrict test-self cmd windows: @@ -89,9 +93,11 @@ jobs: - uses: actions/checkout@v4 - name: Build V run: ./make.bat -${{ matrix.cc }} && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor - - name: Test + - name: Check build tools + run: ./v -N -W -check build-tools + - name: Test tools run: ./v test-self cmd - - name: Test (-cstrict) + - name: Test tools (-cstrict) if: ${{ matrix.cc == 'msvc' }} run: ./v -W -cstrict test-self cmd @@ -117,7 +123,9 @@ jobs: run: | ./v cmd/tools/test_if_v_test_system_works.v ./cmd/tools/test_if_v_test_system_works - - name: Test + - name: Check build tools + run: ./v -N -W -check build-tools + - name: Test tools run: ./v test-self cmd - - name: Test (-cstrict) + - name: Test tools (-cstrict) run: ./v -W -cstrict test-self cmd