-
Notifications
You must be signed in to change notification settings - Fork 11
arch: Add document describing NVRC features #103
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
Changes from all commits
98fa2f6
616c50f
8268a8a
f9b1c38
7f020c1
08f28c9
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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '**.md' | ||
| - 'docs/**' | ||
| - '.markdownlint.json' | ||
| - '.github/workflows/docs.yaml' | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| paths: | ||
| - '**.md' | ||
| - 'docs/**' | ||
| - '.markdownlint.json' | ||
| - '.github/workflows/docs.yaml' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| markdown-lint: | ||
| name: Markdown Lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Lint Markdown files | ||
| uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101 # v22.0.0 | ||
| with: | ||
| globs: '**/*.md' |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,7 +6,6 @@ on: | |||||
| pull_request: | ||||||
| types: | ||||||
| - opened | ||||||
| - edited | ||||||
| - reopened | ||||||
| - synchronize | ||||||
|
|
||||||
|
|
@@ -18,14 +17,69 @@ concurrency: | |||||
| cancel-in-progress: true | ||||||
|
|
||||||
| jobs: | ||||||
| # Detect what files changed | ||||||
| changes: | ||||||
| name: Detect changes | ||||||
| runs-on: ubuntu-latest | ||||||
| outputs: | ||||||
| scripts: ${{ steps.filter.outputs.scripts }} | ||||||
| code: ${{ steps.filter.outputs.code }} | ||||||
| steps: | ||||||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||||||
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||||||
| id: filter | ||||||
| with: | ||||||
| filters: | | ||||||
| scripts: | ||||||
| - '**.sh' | ||||||
| - '**.bash' | ||||||
| code: | ||||||
| - '**/*.rs' | ||||||
| - '**/*.toml' | ||||||
| - '**/*.lock' | ||||||
| - '**/*.sh' | ||||||
| - '**/*.bash' | ||||||
| - '**/*.yaml' | ||||||
| - '**/*.yml' | ||||||
| - '**/*.json' | ||||||
|
|
||||||
| # Always check for scripts without .sh extension (catches bad additions) | ||||||
| extension-check: | ||||||
| name: Check .sh extension | ||||||
| needs: changes | ||||||
| if: ${{ needs.changes.outputs.code == 'true' }} | ||||||
|
||||||
| if: ${{ needs.changes.outputs.code == 'true' }} | |
| if: ${{ needs.changes.outputs.scripts == 'true' }} |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ on: | |||||||
| pull_request: | ||||||||
| types: | ||||||||
| - opened | ||||||||
|
||||||||
| - opened | |
| - opened | |
| - edited |
Copilot
AI
Jan 12, 2026
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.
The path filter for "code" changes should include the workflow file itself ('.github/workflows/static-checks.yaml'). Changes to the workflow logic should trigger the workflow to run, ensuring that modifications to CI configuration are tested. Consider adding '- '.github/workflows/static-checks.yaml'' to the filter list.
| - '.cargo/**' | |
| - '.cargo/**' | |
| - '.github/workflows/static-checks.yaml' |
Copilot
AI
Jan 12, 2026
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.
The condition check should handle the case when the workflow is triggered by schedule. The current logic ${{ needs.changes.outputs.code == 'true' || github.event_name == 'schedule' }} is correct, but scheduled runs will execute the changes job unnecessarily since path filtering doesn't apply to scheduled events. Consider adding a condition to skip the changes job for scheduled runs.
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||||||||||
| { | ||||||||||||||
| "default": true, | ||||||||||||||
| "MD013": { | ||||||||||||||
| "line_length": 80, | ||||||||||||||
| "code_blocks": false, | ||||||||||||||
| "tables": false | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
+3
to
+7
|
||||||||||||||
| "MD013": { | |
| "line_length": 80, | |
| "code_blocks": false, | |
| "tables": false | |
| } | |
| "MD013": false |
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.
The changes detection job checks out the PR head using
ref: ${{ github.event.pull_request.head.sha }}, but this workflow usespull_request_targettrigger (based on the comment on line 33). When using pull_request_target with a manual checkout of untrusted PR code, there's a security risk if the checked-out code is executed. However, since this job only runs path filtering (no code execution), the security risk is minimal. Consider adding a comment explaining why this checkout is safe.