Build with both gcc and clang

This commit is contained in:
Arseny Kapoulkine 2022-06-30 20:53:08 -07:00
parent f04b8c797d
commit 328c63cdcf

View file

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- master - master
- callgrind
paths-ignore: paths-ignore:
- "docs/**" - "docs/**"
- "papers/**" - "papers/**"
@ -18,8 +19,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
bench: compiler: [g++, clang++]
- { title: "Luau Benchmarks (Callgrind)" }
benchResultsRepo: benchResultsRepo:
- { name: "luau-lang/benchmark-data", branch: "main" } - { name: "luau-lang/benchmark-data", branch: "main" }
@ -33,7 +33,7 @@ jobs:
sudo apt-get install valgrind sudo apt-get install valgrind
- name: Build Luau - name: Build Luau
run: make config=release CALLGRIND=1 luau run: CXX=${{ matrix.compiler }} make config=release CALLGRIND=1 luau
- name: Run benchmark - name: Run benchmark
run: | run: |
@ -50,7 +50,7 @@ jobs:
- name: Store results - name: Store results
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: Roblox/rhysd-github-action-benchmark@v-luau
with: with:
name: ${{ matrix.bench.title }} name: callgrind ${{ matrix.compiler }}
tool: "benchmarkluau" tool: "benchmarkluau"
output-file-path: ./output.txt output-file-path: ./output.txt
external-data-json-path: ./gh-pages/bench/data.json external-data-json-path: ./gh-pages/bench/data.json