mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
build: running non-cachegrind static analysis as sudo
This commit is contained in:
parent
99949130b1
commit
24a4b27f48
1 changed files with 5 additions and 5 deletions
10
.github/workflows/static-analysis.yml
vendored
10
.github/workflows/static-analysis.yml
vendored
|
@ -54,13 +54,13 @@ jobs:
|
||||||
sudo apt-get install valgrind
|
sudo apt-get install valgrind
|
||||||
|
|
||||||
- name: Run Luau Analyze on static file
|
- name: Run Luau Analyze on static file
|
||||||
run: python ./bench/measure_time.py ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee ${{ matrix.bench.script }}-output.txt
|
run: sudo python ./bench/measure_time.py ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
- name: Run ${{ matrix.bench.title }} (Cold Cachegrind)
|
- name: Run ${{ matrix.bench.title }} (Cold Cachegrind)
|
||||||
run: sudo ./scripts/run-with-cachegrind.sh python ./bench/measure_time.py "${{ matrix.bench.cachegrindTitle}}Cold" 1 ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee ${{ matrix.bench.script }}-cachegrind-output.txt
|
run: sudo ./scripts/run-with-cachegrind.sh python ./bench/measure_time.py "${{ matrix.bench.cachegrindTitle}}Cold" 1 ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee -a ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
- name: Run ${{ matrix.bench.title }} (Warm Cachegrind)
|
- name: Run ${{ matrix.bench.title }} (Warm Cachegrind)
|
||||||
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/measure_time.py "${{ matrix.bench.cachegrindTitle}}" 1 ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee -a ${{ matrix.bench.script }}-cachegrind-output.txt
|
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/measure_time.py "${{ matrix.bench.cachegrindTitle}}" 1 ./build/release/luau-analyze bench/static_analysis/LuauPolyfillMap.lua | tee -a ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
- name: Checkout Benchmark Results repository
|
- name: Checkout Benchmark Results repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -90,10 +90,10 @@ jobs:
|
||||||
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.bench.title }}
|
name: ${{ matrix.bench.title }}
|
||||||
tool: "benchmarkluau"
|
tool: "roblox"
|
||||||
|
|
||||||
gh-pages-branch: "main"
|
gh-pages-branch: "main"
|
||||||
output-file-path: ./${{ matrix.bench.script }}-cachegrind-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: 200%
|
fail-threshold: 200%
|
||||||
|
|
Loading…
Add table
Reference in a new issue