ci: force all tools to build without warnings/notices in tools_ci.yml (#23371)

This commit is contained in:
Delyan Angelov 2025-01-04 15:37:10 +02:00 committed by GitHub
parent c421c8cc86
commit 5e95b0720a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,9 +37,11 @@ jobs:
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
- name: Code in cmd/ is formatted - name: Code in cmd/ is formatted
run: ./v fmt -verify cmd/ 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 run: ./v test-self cmd
- name: Test (-cstrict) - name: Test tools (-cstrict)
if: ${{ matrix.cc != 'tcc' }} if: ${{ matrix.cc != 'tcc' }}
run: ./v -W -cstrict test-self cmd run: ./v -W -cstrict test-self cmd
- name: Test sanitized - name: Test sanitized
@ -72,9 +74,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build V - name: Build V
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor 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 run: ./v test-self cmd
- name: Test (-cstrict) - name: Test tools (-cstrict)
run: ./v -W -cstrict test-self cmd run: ./v -W -cstrict test-self cmd
windows: windows:
@ -89,9 +93,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build V - name: Build V
run: ./make.bat -${{ matrix.cc }} && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor 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 run: ./v test-self cmd
- name: Test (-cstrict) - name: Test tools (-cstrict)
if: ${{ matrix.cc == 'msvc' }} if: ${{ matrix.cc == 'msvc' }}
run: ./v -W -cstrict test-self cmd run: ./v -W -cstrict test-self cmd
@ -117,7 +123,9 @@ jobs:
run: | run: |
./v cmd/tools/test_if_v_test_system_works.v ./v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works ./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 run: ./v test-self cmd
- name: Test (-cstrict) - name: Test tools (-cstrict)
run: ./v -W -cstrict test-self cmd run: ./v -W -cstrict test-self cmd