Skip to content

Commit

Permalink
Debug WIP: Added multi-os runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJeremy committed Jun 10, 2022
1 parent 6fda242 commit f2e04cf
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Luau Benchmarks
on:
push:
branches:
- feat/add-cachegrind
- master

paths-ignore:
Expand All @@ -18,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [macos, ubuntu-latest, windows-latest]
bench:
- {
script: "run-benchmarks",
Expand All @@ -28,16 +29,23 @@ jobs:
cachegrindIterCount: 20,
}
benchResultsRepo:
- { name: "luau-lang/benchmark-data", branch: "main" }
- { name: "AllanJeremy/luau-benchmark-results", branch: "main" }
# - { name: "luau-lang/benchmark-data", branch: "main" }

runs-on: ${{ matrix.os }}
steps:
- name: Checkout Luau
uses: actions/checkout@v3

- name: Build Luau
- name: Build Luau (Unix)
if: ${{ matrix.os }} != "windows-latest"
run: make config=release luau luau-analyze

- name: Build Luau (Windows)
if: ${{ matrix.os }} == "windows-latest"
run: /
cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo

- uses: actions/setup-python@v3
with:
python-version: "3.9"
Expand All @@ -57,9 +65,11 @@ jobs:
python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
- name: Run ${{ matrix.bench.title }} (Cold Cachegrind)
if: ${{ matrix.os }} == "ubuntu-latest"
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/bench.py "${{ matrix.bench.cachegrindTitle}}Cold" 1 | tee -a ${{ matrix.bench.script }}-output.txt

- name: Run ${{ matrix.bench.title }} (Warm Cachegrind)
if: ${{ matrix.os }} == "ubuntu-latest"
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/bench.py "${{ matrix.bench.cachegrindTitle }}" ${{ matrix.bench.cachegrindIterCount }} | tee -a ${{ matrix.bench.script }}-output.txt

- name: Checkout Benchmark Results repository
Expand All @@ -83,7 +93,8 @@ jobs:
comment-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Store ${{ matrix.bench.title }} result
- name: Store ${{ matrix.bench.title }} result (CacheGrind)
if: ${{ matrix.os }} == "ubuntu-latest"
uses: Roblox/rhysd-github-action-benchmark@v-luau
with:
name: ${{ matrix.bench.title }} (CacheGrind)
Expand Down

0 comments on commit f2e04cf

Please sign in to comment.