Skip to content

Commit 7e711c5

Browse files
Keep using checkout for base branch
1 parent 5d8f0bd commit 7e711c5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/perf.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ env:
2020
HEAD_DIR: head
2121
HEAD_DB: head.sqlite
2222
HEAD_ARTIFACT: head-perf-results
23-
TEST_NAME: TypeScript-v4.9.5
23+
TEST_NAME: TypeScript-4.9.5
24+
TEST_REPO: microsoft/TypeScript
25+
TEST_REF: v4.9.5
2426
TEST_SRC: src/compiler
2527
MASSIF_OUT: perf.out
2628
MASSIF_REPORT: perf.txt
@@ -44,6 +46,7 @@ jobs:
4446
ref: ${{ env.BASE_SHA }}
4547
path: ${{ env.BASE_DIR }}
4648
fetch-depth: 0
49+
lfs: false
4750
- name: Find last relevant base commit
4851
run: |
4952
printf 'BASE_SHA=%s\n' "$(git rev-list -1 ${{ env.BASE_SHA }} -- stack-graphs)" >> $GITHUB_ENV
@@ -55,6 +58,7 @@ jobs:
5558
ref: ${{ env.HEAD_SHA }}
5659
path: ${{ env.HEAD_DIR }}
5760
fetch-depth: 0
61+
lfs: false
5862
- name: "Find last relevant head commit"
5963
run: |
6064
printf 'HEAD_SHA=%s\n' "$(git rev-list -1 ${{ env.HEAD_SHA }} -- stack-graphs)" >> $GITHUB_ENV
@@ -130,8 +134,11 @@ jobs:
130134
#
131135
- name: Checkout benchmark code
132136
if: steps.cache-base-result.outputs.cache-hit != 'true'
133-
run: |
134-
unzip ${{ env.BASE_DIR }}/benchmarks/${{ env.TEST_NAME }}.zip
137+
uses: actions/checkout@v3
138+
with:
139+
repository: ${{ env.TEST_REPO }}
140+
ref: ${{ env.TEST_REF }}
141+
path: ${{ env.TEST_NAME }}
135142
- name: Profile base memory
136143
if: steps.cache-base-result.outputs.cache-hit != 'true'
137144
run: |
File renamed without changes.

0 commit comments

Comments
 (0)