Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 204bbcd

Browse files
committed
Build 3.4-asan from latest stable tag, not latest 3.4 branch
Also, avoid having to do a full clone on the repo by fetching tags separately, and even then only the ones we want.
1 parent a962839 commit 204bbcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
with:
3030
repository: ruby/ruby
3131
path: ruby
32-
fetch-depth: 0
3332
- name: Set latest_commit
3433
id: latest_commit
3534
working-directory: ruby
@@ -38,7 +37,9 @@ jobs:
3837
id: latest_commit_3_4_asan
3938
working-directory: ruby
4039
run: |
41-
git checkout ruby_3_4
40+
git fetch origin --no-tags '+refs/tags/v3_4_*:refs/tags/v3_4_*'
41+
LATEST_TAG=$(git tag --list | grep -E "v3_4_[0-9]+$" | sort -V | tail -n1)
42+
git checkout "$LATEST_TAG"
4243
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4344
- name: Check if latest commit already built
4445
uses: actions/github-script@v7

0 commit comments

Comments
 (0)