Debug WIP

This commit is contained in:
Allan Jeremy 2022-06-15 18:35:16 +03:00
parent bb35854ba4
commit 706c04e31f

View file

@ -37,37 +37,17 @@ jobs:
- name: Checkout Luau repository - name: Checkout Luau repository
uses: actions/checkout@v3 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 shell: bash # necessary for fail-fast
run: | run: |
cmake --build . --target Luau.UnitTest Luau.Conformance --config Debug mkdir build && cd build
Debug/Luau.UnitTest.exe cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
Debug/Luau.Conformance.exe cmake --build . --target Luau.Repl.CLI
- name: cmake test w/flags cmake --build . --target Luau.Analyze.CLI
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 - name: Check dir structure
run: | run: |
ls build/Luau.Repl.CLI.dir ls build
- uses: actions/setup-python@v3 - uses: actions/setup-python@v3
with: with: