-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #873 from candy-lang/enable-call-tracing-in-goldens
Enable call tracing in goldens
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,17 +106,31 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && format('{0}_', github.event.pull_request.base.sha) || 'main' }} | ||
fetch-depth: 1 | ||
path: golden-irs/ | ||
lfs: true | ||
|
||
- name: Create new branch in golden-irs/ | ||
working-directory: golden-irs/ | ||
run: | | ||
git checkout --orphan ${{ env.HEAD_SHA }}_ | ||
git rm -r --force . | ||
- run: mv candy/packages/Examples/.goldens/* golden-irs/ | ||
# GitHub's maximum file size is 100 MB, so we store files larger than that | ||
# in Git LFS. We explicitly specify the files to store there so that we | ||
# can preview/diff most files normally. | ||
- name: Store files larger than 100 MB in LFS | ||
working-directory: golden-irs/ | ||
run: | | ||
large_files=$(find . -type f -size +100M -not -path "./.git/*") | ||
if [ -n "$large_files" ]; then | ||
while IFS= read -r path; do | ||
echo "${path/ /[[:space:]]} filter=lfs diff=lfs merge=lfs -text" >> .gitattributes | ||
done <<< "$large_files" | ||
fi | ||
- uses: EndBug/[email protected] | ||
with: | ||
cwd: golden-irs/ | ||
add: . | ||
default_author: user_info | ||
message: Generate golden IRs | ||
push: --force origin ${{ env.HEAD_SHA }}_ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters