Debug WIP

This commit is contained in:
Allan Jeremy 2022-06-16 15:48:52 +03:00
parent 61d8137496
commit 5c3b8488ce

View file

@ -17,7 +17,10 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-latest]
arch: [Win32, x64] arch: [Win32, x64]
engine:
- { channel: stable, version: latest }
bench: bench:
- { - {
script: "run-benchmarks", script: "run-benchmarks",
@ -29,9 +32,9 @@ jobs:
benchResultsRepo: benchResultsRepo:
- { name: "AllanJeremy/luau-benchmark-results", branch: "main" } - { name: "AllanJeremy/luau-benchmark-results", branch: "main" }
runs-on: windows-latest runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout Luau - name: Checkout Luau repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build Luau - name: Build Luau
@ -41,17 +44,14 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo
cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo
ls build/RelWithDebInfo - name: Move build files to root
run: |
echo %cd%
move build/RelWithDebInfo/* . move build/RelWithDebInfo/* .
# - name: Move build files to root
# run:
- name: Check dir structure - name: Check dir structure
run: | run: |
ls build/RelWithDebInfo ls build/RelWithDebInfo
ls ls
- uses: actions/setup-python@v3 - uses: actions/setup-python@v3
with: with:
python-version: "3.9" python-version: "3.9"
@ -61,11 +61,9 @@ jobs:
run: | run: |
python -m pip install requests python -m pip install requests
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
- name: Run benchmark - name: Run benchmark
run: | run: |
python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
- name: Checkout Benchmark Results repository - name: Checkout Benchmark Results repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -82,13 +80,14 @@ jobs:
output-file-path: ./${{ matrix.bench.script }}-output.txt output-file-path: ./${{ matrix.bench.script }}-output.txt
external-data-json-path: ./gh-pages/dev/bench/data.json external-data-json-path: ./gh-pages/dev/bench/data.json
alert-threshold: 150% alert-threshold: 150%
fail-threshold: 1000% fail-threshold: 200%
fail-on-alert: false fail-on-alert: true
comment-on-alert: true comment-on-alert: true
comment-always: true
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Push benchmark results - name: Push benchmark results
if: github.event_name == 'push'
run: | run: |
echo "Pushing benchmark results..." echo "Pushing benchmark results..."
cd gh-pages cd gh-pages