-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: update github actions #7224
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b1c884f
chore: update github actions
ForsakenHarmony 12a3149
update artifact actions
ForsakenHarmony 800df68
latest protoc
ForsakenHarmony 7cbfb5f
checkout for status comment action
ForsakenHarmony ebf9e0b
fix status comment action
ForsakenHarmony c5290af
fix status comment action again
ForsakenHarmony b22b116
update graphviz
ForsakenHarmony 46999e1
more node20 (and try library release without container)
ForsakenHarmony 4946727
don't merge release artifacts
ForsakenHarmony 59ab154
version typo
ForsakenHarmony e6c293c
remove container from lsp
ForsakenHarmony 88d7787
fix status comment
ForsakenHarmony bb24e91
fix lsp default host
ForsakenHarmony 61cbd98
skip status comment for skipped runs
ForsakenHarmony f23095c
comment
ForsakenHarmony 2263f9e
try fixing lsp workflow
ForsakenHarmony bfde283
nvm fixing lsp workflow
ForsakenHarmony c64ec5a
fix next-swc status comment
ForsakenHarmony 2e007a7
missed the `peter-evans/create-or-update-comment` version
ForsakenHarmony 33ba854
bust cache by removing old cargo group
ForsakenHarmony 4b62ca3
fix bench
ForsakenHarmony 819371e
try fixing corepack
ForsakenHarmony 1e98f2a
use default github token for protoc install
ForsakenHarmony 53dfa7c
update ahash
ForsakenHarmony 6137ff0
print rust toolchain before build
ForsakenHarmony d5650c1
try to set up rust after node
ForsakenHarmony db5918c
dbg
ForsakenHarmony d860f85
bring back windows input for turborepo
ForsakenHarmony 24c2903
fix musl build
ForsakenHarmony File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: "cargo-sweep" | ||
description: "Runs cargo-sweep to clean old build artifacts" | ||
runs: | ||
using: "node16" | ||
using: "node20" | ||
main: "dist/main/index.js" | ||
post: "dist/post/index.js" |
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
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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ inputs: | |
description: "Comma-separated list of components to be additionally installed" | ||
required: false | ||
github-token: | ||
description: "GitHub token. You can pass secrets.GITHUB_TOKEN" | ||
description: "GitHub token to get around rate limits." | ||
required: false | ||
default: ${{ github.token }} | ||
shared-cache-key: | ||
|
@@ -59,16 +59,16 @@ runs: | |
- name: Set Up Protoc | ||
id: set-up-protoc | ||
continue-on-error: true | ||
uses: arduino/setup-protoc@v1.2.0 | ||
uses: arduino/setup-protoc@v3.0.0 | ||
with: | ||
version: "3.x" | ||
version: "23.x" | ||
repo-token: ${{ inputs.github-token }} | ||
|
||
- name: Set Up Protoc (second try) | ||
if: steps.set-up-protoc.outcome == 'failure' | ||
uses: arduino/setup-protoc@v1.2.0 | ||
uses: arduino/setup-protoc@v3.0.0 | ||
with: | ||
version: "3.x" | ||
version: "23.x" | ||
repo-token: ${{ inputs.github-token }} | ||
|
||
- name: "Add cargo problem matchers" | ||
|
@@ -82,10 +82,10 @@ runs: | |
with: | ||
shared-key: ${{ inputs.shared-cache-key }} | ||
key: ${{ inputs.cache-key }} | ||
# the cache is huge and we only get 10gb max, so we only save on master | ||
# the cache is huge, and we only get 10gb max, so we only save on master | ||
save-if: ${{ github.ref == 'refs/heads/main' && inputs.save-cache || 'false' }} | ||
|
||
- name: "Install cargo-sweep" | ||
- name: "Install cargo-sweep,cargo-groups" | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected],cargo-groups | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "Status Comment" | ||
description: "Creates and updates a comment" | ||
inputs: | ||
id: | ||
description: "A marker to uniquely identify the comment for future updates" | ||
required: true | ||
issue-number: | ||
description: 'The number of the issue or pull request in which to create a comment.' | ||
default: ${{ github.event.pull_request.number }} | ||
body: | ||
description: 'The comment body. Cannot be used in conjunction with `body-path`.' | ||
required: false | ||
default: "" | ||
body-path: | ||
description: 'The path to a file containing the comment body. Cannot be used in conjunction with `body`.' | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Generate Marker String | ||
id: marker | ||
shell: bash | ||
run: | | ||
echo "marker=<!-- CI COMMENT MARKER: ${{ inputs.id }} -->" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Create comment body | ||
id: body | ||
shell: bash | ||
run: | | ||
FILE="${{ inputs.body-path }}" | ||
{ | ||
echo "body<<EOF" | ||
if [[ -f "$FILE" ]]; then | ||
cat "$FILE" | ||
else | ||
echo "${{ inputs.body }}" | ||
fi | ||
echo | ||
echo "${{ steps.marker.outputs.marker }}" | ||
echo "EOF" | ||
} >> "$GITHUB_OUTPUT" | ||
|
||
- name: Find PR Comment | ||
id: comment | ||
if: github.event_name == 'pull_request' | ||
uses: peter-evans/find-comment@v3 | ||
with: | ||
issue-number: ${{ inputs.issue-number }} | ||
comment-author: "github-actions[bot]" | ||
body-includes: ${{ steps.marker.outputs.marker }} | ||
|
||
- name: Create or update PR comment | ||
if: github.event_name == 'pull_request' | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ inputs.issue-number }} | ||
comment-id: ${{ steps.comment.outputs.comment-id }} | ||
body: ${{ steps.body.outputs.body }} | ||
edit-mode: replace |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we may add some comments describing that this is to avoid rate limit.
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.
Mainly because passing token to
setup-rust
action looks weird.