From bb35854ba48887914a6c74411298ebe937d3f183 Mon Sep 17 00:00:00 2001 From: Allan Jeremy Date: Wed, 15 Jun 2022 15:55:55 +0300 Subject: [PATCH] debug: updated windows build process to include tests Borrowed this from build workflow --- .github/workflows/benchmark.yml | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6b338a8a..b6de9732 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -37,13 +37,33 @@ jobs: - name: Checkout Luau repository uses: actions/checkout@v3 - - name: Build Luau + # - name: Build Luau + # shell: bash # necessary for fail-fast + # run: | + # mkdir build && cd build + # cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo + # cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo + # cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo + - name: cmake configure + run: cmake . -A ${{matrix.arch}} -DLUAU_WERROR=ON + + - name: cmake test shell: bash # necessary for fail-fast run: | - mkdir build && cd build - cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo - cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo - cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo + cmake --build . --target Luau.UnitTest Luau.Conformance --config Debug + Debug/Luau.UnitTest.exe + Debug/Luau.Conformance.exe + - name: cmake test w/flags + shell: bash # necessary for fail-fast + run: | + Debug/Luau.UnitTest.exe --fflags=true + Debug/Luau.Conformance.exe --fflags=true + - name: cmake cli + shell: bash # necessary for fail-fast + run: | + cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Debug # match config with tests to improve build time + Debug/luau tests/conformance/assert.lua + Debug/luau-analyze tests/conformance/assert.lua - name: Check dir structure run: |