From 25812e52f028b7af7a7cbd0df6d99a06c422c316 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 19 May 2022 11:52:31 +0300 Subject: [PATCH] ci: use V_CI_CSTRICT=1 consistently for every `v -cstrict test-self` --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e212a63a6..5ba8e121e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,6 @@ jobs: timeout-minutes: 121 env: VFLAGS: -cc tcc -no-retry-compilation - V_CI_CSTRICT: 1 steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -61,7 +60,7 @@ jobs: - name: Self tests run: ./v test-self # - 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 run: TZ=Etc/GMT+12 ./v test vlib/time/ - name: Test time functions in a timezone UTC-3 @@ -295,7 +294,7 @@ jobs: - name: Self tests (-prod) run: ./v -o vprod -prod cmd/v && ./vprod test-self - 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 run: ./v build-examples - name: Build tetris.v with -autofree @@ -384,12 +383,16 @@ jobs: ./cmd/tools/test_if_v_test_system_works - name: All code is formatted run: ./v test-cleancode + - name: Self tests run: ./v test-self - - name: Self tests (-prod) - run: ./v -o vprod -prod cmd/v && ./vprod test-self + - name: Self tests (vprod) + run: | + ./v -o vprod -prod cmd/v + ./vprod test-self - name: Self tests (-cstrict) - run: ./v -cstrict test-self + run: V_CI_CSTRICT=1 ./vprod -cstrict test-self + - name: Build examples run: ./v build-examples - name: Build examples with -autofree