Forráskód Böngészése

big: Run tests under CI.

Jeroen van Rijn 4 éve
szülő
commit
0605a9f239
2 módosított fájl, 9 hozzáadás és 3 törlés
  1. 7 1
      .github/workflows/ci.yml
  2. 2 2
      core/math/big/tests/build.bat

+ 7 - 1
.github/workflows/ci.yml

@@ -64,5 +64,11 @@ jobs:
           call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
           odin run examples/demo/demo.odin
         timeout-minutes: 10
-
+      - name: core:math/big tests
+        shell: cmd
+        run: |
+          call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
+          cd core\math\big\tests
+          call build.bat
+        timeout-minutes: 10
 

+ 2 - 2
core/math/big/tests/build.bat

@@ -4,5 +4,5 @@ set TEST_ARGS=
 set OUT_NAME=test_library
 set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style
 :odin build . %COMMON% -o:minimal -out:%OUT_NAME% && python test.py %TEST_ARGS%
-odin build . %COMMON% -o:size    -out:%OUT_NAME% && python test.py %TEST_ARGS%
-:odin build . %COMMON% -o:speed   -out:%OUT_NAME% && python test.py %TEST_ARGS%
+:odin build . %COMMON% -o:size    -out:%OUT_NAME% && python test.py %TEST_ARGS%
+odin build . %COMMON% -o:speed   -out:%OUT_NAME% && python test.py %TEST_ARGS%