Skip to content

Commit

Permalink
ci: force checking that all tools build without warnings/notices in t…
Browse files Browse the repository at this point in the history
…ools_ci.yml
  • Loading branch information
spytheman committed Jan 4, 2025
1 parent c421c8c commit 10e29ec
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/tools_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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

0 comments on commit 10e29ec

Please sign in to comment.