-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workflows/release-binaries: Always pull composite actions from main branch #100805
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,6 +148,20 @@ jobs: | |
if: github.repository == 'llvm/llvm-project' | ||
runs-on: ${{ inputs.runs-on }} | ||
steps: | ||
|
||
- name: Checkout Actions | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ (github.event_name == 'pull_request' && github.sha) || 'main' }} | ||
sparse-checkout: | | ||
.github/workflows/ | ||
sparse-checkout-cone-mode: false | ||
path: workflows | ||
|
||
- name: Setup Stage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming this moved up here so it can use the just pulled in action definition? The subsequent LLVM checkout ends up overriding this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The next checkout won't override this, so I didn't have to move this. The reason I did was to match the other stages which have these two steps next to each other. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. For some reason I missed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was wrong, the checkout does overwrite this. See #100845. |
||
id: setup-stage | ||
uses: ./workflows/.github/workflows/release-binaries-setup-stage | ||
|
||
- name: Checkout LLVM | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
|
@@ -161,10 +175,6 @@ jobs: | |
key: sccache-${{ runner.os }}-${{ runner.arch }}-release | ||
variant: sccache | ||
|
||
- name: Setup Stage | ||
id: setup-stage | ||
uses: ./.github/workflows/release-binaries-setup-stage | ||
|
||
- name: Build Stage 1 Clang | ||
id: build | ||
shell: bash | ||
|
@@ -184,7 +194,7 @@ jobs: | |
ls -ltr ${{ steps.setup-stage.outputs.build-prefix }}/build | ||
|
||
- name: Save Stage | ||
uses: ./.github/workflows/release-binaries-save-stage | ||
uses: ./workflows/.github/workflows/release-binaries-save-stage | ||
with: | ||
build-prefix: ${{ steps.setup-stage.outputs.build-prefix }} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be hash pinned to the same version as below.