mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
Build and use luau-compile in CI (#952)
This commit is contained in:
parent
3ecd3a82ab
commit
ba65b0e9cd
4 changed files with 17 additions and 15 deletions
22
.github/workflows/benchmark.yml
vendored
22
.github/workflows/benchmark.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
|||
- name: Build Luau (clang)
|
||||
run: |
|
||||
make config=profile clean
|
||||
CXX=clang++ make config=profile luau luau-analyze
|
||||
CXX=clang++ make config=profile luau luau-analyze luau-compile
|
||||
|
||||
- name: Run benchmark (bench-gcc)
|
||||
run: |
|
||||
|
@ -70,16 +70,16 @@ jobs:
|
|||
- name: Run benchmark (compile)
|
||||
run: |
|
||||
filter() {
|
||||
awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau --compile"}'
|
||||
awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau-compile"}'
|
||||
}
|
||||
valgrind --tool=callgrind ./luau --compile=null -O0 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O0 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=null -O1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O1 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=null -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=codegennull -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-codegen | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=null -O0 bench/other/regex.lua 2>&1 | filter regex-O0 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=null -O1 bench/other/regex.lua 2>&1 | filter regex-O1 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=null -O2 bench/other/regex.lua 2>&1 | filter regex-O2 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau --compile=codegennull -O2 bench/other/regex.lua 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O0 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O1 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-codegen | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/regex.lua 2>&1 | filter regex-O0 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/regex.lua 2>&1 | filter regex-O1 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/regex.lua 2>&1 | filter regex-O2 | tee -a compile-output.txt
|
||||
valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/regex.lua 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt
|
||||
|
||||
- name: Checkout benchmark results
|
||||
uses: actions/checkout@v3
|
||||
|
@ -124,7 +124,7 @@ jobs:
|
|||
- name: Store results (compile)
|
||||
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
||||
with:
|
||||
name: luau --compile
|
||||
name: luau-compile
|
||||
tool: "benchmarkluau"
|
||||
output-file-path: ./compile-output.txt
|
||||
external-data-json-path: ./gh-pages/compile.json
|
||||
|
|
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -42,9 +42,10 @@ jobs:
|
|||
./luau-tests -ts=Conformance --codegen -O2 --fflags=true
|
||||
- name: make cli
|
||||
run: |
|
||||
make -j2 config=sanitize werror=1 luau luau-analyze # match config with tests to improve build time
|
||||
make -j2 config=sanitize werror=1 luau luau-analyze luau-compile # match config with tests to improve build time
|
||||
./luau tests/conformance/assert.lua
|
||||
./luau-analyze tests/conformance/assert.lua
|
||||
./luau-compile tests/conformance/assert.lua
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
|
@ -76,9 +77,10 @@ jobs:
|
|||
- 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
|
||||
cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Debug # match config with tests to improve build time
|
||||
Debug/luau tests/conformance/assert.lua
|
||||
Debug/luau-analyze tests/conformance/assert.lua
|
||||
Debug/luau-compile tests/conformance/assert.lua
|
||||
|
||||
coverage:
|
||||
runs-on: ubuntu-20.04
|
||||
|
|
2
.github/workflows/new-release.yml
vendored
2
.github/workflows/new-release.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
- name: configure
|
||||
run: cmake . -DCMAKE_BUILD_TYPE=Release
|
||||
- name: build
|
||||
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release -j 2
|
||||
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Release -j 2
|
||||
- name: pack
|
||||
if: matrix.os.name != 'windows'
|
||||
run: zip luau-${{matrix.os.name}}.zip luau*
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
- name: configure
|
||||
run: cmake . -DCMAKE_BUILD_TYPE=Release
|
||||
- name: build
|
||||
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release -j 2
|
||||
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Release -j 2
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: matrix.os.name != 'windows'
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue