diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14786fb028..55ab229e11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -147,95 +147,95 @@ jobs: Expand-Archive tcl8613-src.zip -DestinationPath tcl8613-src cd tcl8613-src\tcl8.6.13\win - &nmake -f makefile.vc release install INSTALLDIR=c:\progra~1\tcl + &nmake /D -f makefile.vc release install INSTALLDIR=c:\progra~1\tcl if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } setx /M PATH "$($env:path);c:\progra~1\tcl\bin" - - - name: build - env: - # instructs SCons to print debug statements to stdout - SCONS_MSCOMMON_DEBUG: '-' - run: | - ./build.bat --scu --opt --verbose --tcl=c:\progra~1\tcl all performance_tests - if ($lastexitcode -ne 0) { - throw "build.bat exit code: $lastexitcode" - } - - - name: Pack artifacts - shell: bash - run: tar -czvf build.tar.gz out/ - - name: upload artifacts - uses: actions/upload-artifact@v3 - with: - name: Soar-Windows - path: ./build.tar.gz - - - name: unit tests - working-directory: ./out - # TODO: why do these fail? Make them pass. - run: | - ./UnitTests -e PRIMS_Sanity1 -e PRIMS_Sanity2 -f testSmemArithmetic - if ($lastexitcode -ne 0) { - throw "UnitTests exit code: $lastexitcode" - } - - - name: SML Java tests - working-directory: ./out - run: | - java -jar java/soar-smljava.jar - if ($lastexitcode -ne 0) { - throw "soar-smljava exit code: $lastexitcode" - } - - - name: SML Python tests - working-directory: ./out - env: - PYTHONUTF8: 1 - run: | - python3 TestPythonSML.py - if ($lastexitcode -ne 0) { - throw "TestPythonSML.py exit code: $lastexitcode" - } - - - name: SML Tcl tests - working-directory: ./out - run: | - Get-ChildItem -Recurse echo "|||||||||||||" Get-ChildItem -Recurse c:\progra~1\tcl echo "|||||||||||||" echo $env:path echo "|||||||||||||" - tclsh86t TestTclSML.tcl - if ($lastexitcode -ne 0) { - throw "TestTclSML.tcl exit code: $lastexitcode" - } - # TODO: run additional tests for CSharp + # - name: build + # env: + # # instructs SCons to print debug statements to stdout + # SCONS_MSCOMMON_DEBUG: '-' + # run: | + # ./build.bat --scu --opt --verbose --tcl=c:\progra~1\tcl all performance_tests + # if ($lastexitcode -ne 0) { + # throw "build.bat exit code: $lastexitcode" + # } + + # - name: Pack artifacts + # shell: bash + # run: tar -czvf build.tar.gz out/ + # - name: upload artifacts + # uses: actions/upload-artifact@v3 + # with: + # name: Soar-Windows + # path: ./build.tar.gz + + # - name: unit tests + # working-directory: ./out + # # TODO: why do these fail? Make them pass. + # run: | + # ./UnitTests -e PRIMS_Sanity1 -e PRIMS_Sanity2 -f testSmemArithmetic + # if ($lastexitcode -ne 0) { + # throw "UnitTests exit code: $lastexitcode" + # } + + # - name: SML Java tests + # working-directory: ./out + # run: | + # java -jar java/soar-smljava.jar + # if ($lastexitcode -ne 0) { + # throw "soar-smljava exit code: $lastexitcode" + # } + + # - name: SML Python tests + # working-directory: ./out + # env: + # PYTHONUTF8: 1 + # run: | + # python3 TestPythonSML.py + # if ($lastexitcode -ne 0) { + # throw "TestPythonSML.py exit code: $lastexitcode" + # } - # reports JUnit test results as GitHub PR check. - - name: publish test report - uses: mikepenz/action-junit-report@v3 - # always run even if the previous step fails - if: always() - with: - report_paths: './out/TestResults.xml' - # disabled until https://github.com/mikepenz/action-junit-report/issues/40 is resolved - # fail_on_failure: true - annotate_only: true - - - name: performance tests + - name: SML Tcl tests working-directory: ./out run: | - bash ./do_performance_test.sh + Get-ChildItem -Recurse + tclsh86t TestTclSML.tcl if ($lastexitcode -ne 0) { - throw "do_performance_test exit code: $lastexitcode" + throw "TestTclSML.tcl exit code: $lastexitcode" } - - name: upload performance test results - uses: actions/upload-artifact@v3 - with: - name: Windows-PerformanceTestResults.txt - path: ./out/SoarPerformanceTests/PerformanceTestResults.txt + # # TODO: run additional tests for CSharp + + # # reports JUnit test results as GitHub PR check. + # - name: publish test report + # uses: mikepenz/action-junit-report@v3 + # # always run even if the previous step fails + # if: always() + # with: + # report_paths: './out/TestResults.xml' + # # disabled until https://github.com/mikepenz/action-junit-report/issues/40 is resolved + # # fail_on_failure: true + # annotate_only: true + + # - name: performance tests + # working-directory: ./out + # run: | + # bash ./do_performance_test.sh + # if ($lastexitcode -ne 0) { + # throw "do_performance_test exit code: $lastexitcode" + # } + + # - name: upload performance test results + # uses: actions/upload-artifact@v3 + # with: + # name: Windows-PerformanceTestResults.txt + # path: ./out/SoarPerformanceTests/PerformanceTestResults.txt