ci: use V_CI_CSTRICT=1 consistently for every `v -cstrict test-self`

Delyan Angelov 2022-05-19 11:52:31 +03:00 committed by Jef Roosens
parent 990a540851
commit c5933aa3c5
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 9 additions and 6 deletions

View File

@ -18,7 +18,6 @@ jobs:
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
V_CI_CSTRICT: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -61,7 +60,7 @@ jobs:
- name: Self tests - name: Self tests
run: ./v test-self run: ./v test-self
# - name: Self tests (-cstrict) # - name: Self tests (-cstrict)
# run: ./v -cstrict test-self # run: V_CI_CSTRICT=1 ./v -cstrict test-self
- name: Test time functions in a timezone UTC-12 - name: Test time functions in a timezone UTC-12
run: TZ=Etc/GMT+12 ./v test vlib/time/ run: TZ=Etc/GMT+12 ./v test vlib/time/
- name: Test time functions in a timezone UTC-3 - name: Test time functions in a timezone UTC-3
@ -295,7 +294,7 @@ jobs:
- name: Self tests (-prod) - name: Self tests (-prod)
run: ./v -o vprod -prod cmd/v && ./vprod test-self run: ./v -o vprod -prod cmd/v && ./vprod test-self
- name: Self tests (-cstrict) - name: Self tests (-cstrict)
run: ./v -cc gcc -cstrict test-self run: V_CI_CSTRICT=1 ./v -cc gcc -cstrict test-self
- name: Build examples - name: Build examples
run: ./v build-examples run: ./v build-examples
- name: Build tetris.v with -autofree - name: Build tetris.v with -autofree
@ -384,12 +383,16 @@ jobs:
./cmd/tools/test_if_v_test_system_works ./cmd/tools/test_if_v_test_system_works
- name: All code is formatted - name: All code is formatted
run: ./v test-cleancode run: ./v test-cleancode
- name: Self tests - name: Self tests
run: ./v test-self run: ./v test-self
- name: Self tests (-prod) - name: Self tests (vprod)
run: ./v -o vprod -prod cmd/v && ./vprod test-self run: |
./v -o vprod -prod cmd/v
./vprod test-self
- name: Self tests (-cstrict) - name: Self tests (-cstrict)
run: ./v -cstrict test-self run: V_CI_CSTRICT=1 ./vprod -cstrict test-self
- name: Build examples - name: Build examples
run: ./v build-examples run: ./v build-examples
- name: Build examples with -autofree - name: Build examples with -autofree