Skip to content

Commit 9fed2ef

Browse files
authored
Merge branch 'main' into misa-readonly-zero
Signed-off-by: Jevin Jojo <[email protected]>
2 parents af8c80c + b09c215 commit 9fed2ef

File tree

342 files changed

+2735
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+2735
-468
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# default for all files
22
* @dhower-qc @ThinkOpenly
33

4-
# TODO: get more code owners
4+
# eclipse Xtext project owned by Ajit Dingankar
5+
tools/eclipse @adingank-qualcomm @dhower-qc

.github/workflows/deploy.yml

Lines changed: 3 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# (b) All jobs run, but output is not uploaded/GitHub pages is not updated
1212
# (c) All jobs run, results are uploaded, and GitHub pages is updated
1313

14-
name: Merge Queue Tests
14+
name: Deployment actions
1515
permissions:
1616
contents: read
1717
pull-requests: write
@@ -77,7 +77,7 @@ jobs:
7777
- name: Resolve unconfig
7878
run: ./do gen:resolved_arch
7979
- name: Tar unconfig
80-
run: tar czf gen/resolved_spec/_/resolved_spec.tar.gz gen/resolved_spec/_
80+
run: tar czf gen/resolved_spec/_resolved_spec.tar.gz gen/resolved_spec/_ && mv gen/resolved_spec/_resolved_spec.tar.gz gen/resolved_spec/_/resolved_spec.tar.gz
8181
- name: Upload resolved spec
8282
uses: actions/upload-artifact@v4
8383
if: (github.event_name == 'push') && (github.ref_name == 'main')
@@ -314,7 +314,7 @@ jobs:
314314
uses: actions/upload-artifact@v4
315315
if: (github.event_name == 'push') && (github.ref_name == 'main')
316316
with:
317-
name: ac100-crd-${{ github.run_id }}
317+
name: ac200-crd-${{ github.run_id }}
318318
path: gen/proc_crd/pdf/AC200-CRD.pdf
319319
build-mc100-32-crd:
320320
if: (github.event_name == 'merge_queue') || (inputs.dry-run == false)
@@ -460,144 +460,3 @@ jobs:
460460
with:
461461
name: mc100-32-ctp-${{ github.run_id }}
462462
path: gen/proc_ctp/pdf/MC100-32-CTP.pdf
463-
deploy_pages:
464-
if: (github.event_name == 'push') && (github.ref_name == 'main')
465-
runs-on: ubuntu-latest
466-
steps:
467-
- name: Make _site
468-
run: mkdir _site
469-
- name: Download reuse BOM
470-
uses: actions/download-artifact@v5
471-
with:
472-
name: reuse-manifest-${{ github.run_id }}
473-
path: _site/reuse_bom.txt
474-
- name: Download resolved spec
475-
uses: actions/download-artifact@v5
476-
with:
477-
name: resolved-spec-${{ github.run_id }}
478-
path: _site/resolved_spec
479-
- name: Download UDB API Docs
480-
uses: actions/download-artifact@v5
481-
with:
482-
name: udb-api-${{ github.run_id }}
483-
path: _site/htmls/udb_api_doc
484-
- name: Download ISA Explorer CSR
485-
uses: actions/download-artifact@v5
486-
with:
487-
name: isa_explorer-csr-${{ github.run_id }}
488-
path: _site/isa_explorer
489-
- name: Download ISA Explorer Extension
490-
uses: actions/download-artifact@v5
491-
with:
492-
name: isa_explorer-ext-${{ github.run_id }}
493-
path: _site/isa_explorer
494-
- name: Download ISA Explorer Inst
495-
uses: actions/download-artifact@v5
496-
with:
497-
name: isa_explorer-inst-${{ github.run_id }}
498-
path: _site/isa_explorer
499-
- name: Download ISA Explorer Spreadsheet
500-
uses: actions/download-artifact@v5
501-
with:
502-
name: isa_explorer-spreadsheet-${{ github.run_id }}
503-
path: _site/isa_explorer
504-
- name: Download HTML ISA Manual
505-
uses: actions/download-artifact@v5
506-
with:
507-
name: isa-html-manual-${{ github.run_id }}
508-
path: _site/manual
509-
- name: Download HTML ISA Manual
510-
uses: actions/download-artifact@v5
511-
with:
512-
name: cfg-html-manual-${{ github.run_id }}
513-
path: _site/example_cfg
514-
- name: Download Instruction Appendix
515-
uses: actions/download-artifact@v5
516-
with:
517-
name: inst-appendix-${{ github.run_id }}
518-
path: _site/pdfs
519-
- name: Download RVI20
520-
uses: actions/download-artifact@v5
521-
with:
522-
name: rvi20-${{ github.run_id }}
523-
path: _site/pdfs
524-
- name: Download RVA20
525-
uses: actions/download-artifact@v5
526-
with:
527-
name: rva20-${{ github.run_id }}
528-
path: _site/pdfs
529-
- name: Download RVA22
530-
uses: actions/download-artifact@v5
531-
with:
532-
name: rva22-${{ github.run_id }}
533-
path: _site/pdfs
534-
- name: Download RVA23
535-
uses: actions/download-artifact@v5
536-
with:
537-
name: rva23-${{ github.run_id }}
538-
path: _site/pdfs
539-
- name: Download RVB23
540-
uses: actions/download-artifact@v5
541-
with:
542-
name: rvb23-${{ github.run_id }}
543-
path: _site/pdfs
544-
- name: Download AC100
545-
uses: actions/download-artifact@v5
546-
with:
547-
name: ac100-crd-${{ github.run_id }}
548-
path: _site/pdfs
549-
- name: Download AC200
550-
uses: actions/download-artifact@v5
551-
with:
552-
name: ac200-crd-${{ github.run_id }}
553-
path: _site/pdfs
554-
- name: Download MC100-32
555-
uses: actions/download-artifact@v5
556-
with:
557-
name: mc100-32-crd-${{ github.run_id }}
558-
path: _site/pdfs
559-
- name: Download MC100-64
560-
uses: actions/download-artifact@v5
561-
with:
562-
name: mc100-64-crd-${{ github.run_id }}
563-
path: _site/pdfs
564-
- name: Download MC200-32
565-
uses: actions/download-artifact@v5
566-
with:
567-
name: mc200-32-crd-${{ github.run_id }}
568-
path: _site/pdfs
569-
- name: Download MC200-64
570-
uses: actions/download-artifact@v5
571-
with:
572-
name: mc200-64-crd-${{ github.run_id }}
573-
path: _site/pdfs
574-
- name: Download MC300-32
575-
uses: actions/download-artifact@v5
576-
with:
577-
name: mc300-32-crd-${{ github.run_id }}
578-
path: _site/pdfs
579-
- name: Download MC300-64
580-
uses: actions/download-artifact@v5
581-
with:
582-
name: mc300-64-crd-${{ github.run_id }}
583-
path: _site/pdfs
584-
- name: Download RVI20-32 CTP
585-
uses: actions/download-artifact@v5
586-
with:
587-
name: rvi20-32-ctp-${{ github.run_id }}
588-
path: _site/pdfs
589-
- name: Download RVI20-64 CTP
590-
uses: actions/download-artifact@v5
591-
with:
592-
name: rvi20-64-ctp-${{ github.run_id }}
593-
path: _site/pdfs
594-
- name: Download MC100-32 CTP
595-
uses: actions/download-artifact@v5
596-
with:
597-
name: mc100-32-ctp-${{ github.run_id }}
598-
path: _site/pdfs
599-
- name: Create index
600-
env:
601-
PAGES_URL: https://riscv-software-src.github.io/riscv-unified-db
602-
run: |
603-
ruby -r erb -e "File.write('_site/index.html', ERB.new('tools/scripts/pages.html.erb', trim_mode: '-').result(binding))"

.github/workflows/pages.yml

Lines changed: 145 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Deploy pages
22
on:
3-
push:
4-
branches:
5-
- main
3+
workflow_run:
4+
workflows: [Deployment actions]
5+
types: [completed]
6+
branches: [main]
67
workflow_dispatch:
78
permissions:
89
contents: read
@@ -14,6 +15,7 @@ concurrency:
1415
jobs:
1516
pages:
1617
runs-on: ubuntu-latest
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1719
env:
1820
SINGULARITY: 1
1921
environment:
@@ -24,8 +26,146 @@ jobs:
2426
uses: actions/checkout@v4
2527
- name: singularity setup
2628
uses: ./.github/actions/singularity-setup
27-
- name: Create many artifacts in the _site directory
28-
run: /bin/bash tools/scripts/deploy.sh
29+
30+
- name: Make _site
31+
run: mkdir _site
32+
- name: Download reuse BOM
33+
uses: actions/download-artifact@v5
34+
with:
35+
name: reuse-manifest-${{ github.event.workflow_run.run_number }}
36+
path: _site/reuse_bom.txt
37+
- name: Download resolved spec
38+
uses: actions/download-artifact@v5
39+
with:
40+
name: resolved-spec-${{ github.event.workflow_run.run_number }}
41+
path: _site/resolved_spec
42+
- name: Download UDB API Docs
43+
uses: actions/download-artifact@v5
44+
with:
45+
name: udb-api-${{ github.event.workflow_run.run_number }}
46+
path: _site/htmls/udb_api_doc
47+
- name: Download ISA Explorer CSR
48+
uses: actions/download-artifact@v5
49+
with:
50+
name: isa_explorer-csr-${{ github.event.workflow_run.run_number }}
51+
path: _site/isa_explorer
52+
- name: Download ISA Explorer Extension
53+
uses: actions/download-artifact@v5
54+
with:
55+
name: isa_explorer-ext-${{ github.event.workflow_run.run_number }}
56+
path: _site/isa_explorer
57+
- name: Download ISA Explorer Inst
58+
uses: actions/download-artifact@v5
59+
with:
60+
name: isa_explorer-inst-${{ github.event.workflow_run.run_number }}
61+
path: _site/isa_explorer
62+
- name: Download ISA Explorer Spreadsheet
63+
uses: actions/download-artifact@v5
64+
with:
65+
name: isa_explorer-spreadsheet-${{ github.event.workflow_run.run_number }}
66+
path: _site/isa_explorer
67+
- name: Download HTML ISA Manual
68+
uses: actions/download-artifact@v5
69+
with:
70+
name: isa-html-manual-${{ github.event.workflow_run.run_number }}
71+
path: _site/manual
72+
- name: Download HTML ISA Manual
73+
uses: actions/download-artifact@v5
74+
with:
75+
name: cfg-html-manual-${{ github.event.workflow_run.run_number }}
76+
path: _site/example_cfg
77+
- name: Download Instruction Appendix
78+
uses: actions/download-artifact@v5
79+
with:
80+
name: inst-appendix-${{ github.event.workflow_run.run_number }}
81+
path: _site/pdfs
82+
- name: Download RVI20
83+
uses: actions/download-artifact@v5
84+
with:
85+
name: rvi20-${{ github.event.workflow_run.run_number }}
86+
path: _site/pdfs
87+
- name: Download RVA20
88+
uses: actions/download-artifact@v5
89+
with:
90+
name: rva20-${{ github.event.workflow_run.run_number }}
91+
path: _site/pdfs
92+
- name: Download RVA22
93+
uses: actions/download-artifact@v5
94+
with:
95+
name: rva22-${{ github.event.workflow_run.run_number }}
96+
path: _site/pdfs
97+
- name: Download RVA23
98+
uses: actions/download-artifact@v5
99+
with:
100+
name: rva23-${{ github.event.workflow_run.run_number }}
101+
path: _site/pdfs
102+
- name: Download RVB23
103+
uses: actions/download-artifact@v5
104+
with:
105+
name: rvb23-${{ github.event.workflow_run.run_number }}
106+
path: _site/pdfs
107+
- name: Download AC100
108+
uses: actions/download-artifact@v5
109+
with:
110+
name: ac100-crd-${{ github.event.workflow_run.run_number }}
111+
path: _site/pdfs
112+
- name: Download AC200
113+
uses: actions/download-artifact@v5
114+
with:
115+
name: ac200-crd-${{ github.event.workflow_run.run_number }}
116+
path: _site/pdfs
117+
- name: Download MC100-32
118+
uses: actions/download-artifact@v5
119+
with:
120+
name: mc100-32-crd-${{ github.event.workflow_run.run_number }}
121+
path: _site/pdfs
122+
- name: Download MC100-64
123+
uses: actions/download-artifact@v5
124+
with:
125+
name: mc100-64-crd-${{ github.event.workflow_run.run_number }}
126+
path: _site/pdfs
127+
- name: Download MC200-32
128+
uses: actions/download-artifact@v5
129+
with:
130+
name: mc200-32-crd-${{ github.event.workflow_run.run_number }}
131+
path: _site/pdfs
132+
- name: Download MC200-64
133+
uses: actions/download-artifact@v5
134+
with:
135+
name: mc200-64-crd-${{ github.event.workflow_run.run_number }}
136+
path: _site/pdfs
137+
- name: Download MC300-32
138+
uses: actions/download-artifact@v5
139+
with:
140+
name: mc300-32-crd-${{ github.event.workflow_run.run_number }}
141+
path: _site/pdfs
142+
- name: Download MC300-64
143+
uses: actions/download-artifact@v5
144+
with:
145+
name: mc300-64-crd-${{ github.event.workflow_run.run_number }}
146+
path: _site/pdfs
147+
- name: Download RVI20-32 CTP
148+
uses: actions/download-artifact@v5
149+
with:
150+
name: rvi20-32-ctp-${{ github.event.workflow_run.run_number }}
151+
path: _site/pdfs
152+
- name: Download RVI20-64 CTP
153+
uses: actions/download-artifact@v5
154+
with:
155+
name: rvi20-64-ctp-${{ github.event.workflow_run.run_number }}
156+
path: _site/pdfs
157+
- name: Download MC100-32 CTP
158+
uses: actions/download-artifact@v5
159+
with:
160+
name: mc100-32-ctp-${{ github.event.workflow_run.run_number }}
161+
path: _site/pdfs
162+
- name: Create index
163+
env:
164+
PAGES_URL: https://riscv-software-src.github.io/riscv-unified-db
165+
run: |
166+
ruby -r erb -e "File.write('_site/index.html', ERB.new('tools/scripts/pages.html.erb', trim_mode: '-').result(binding))"
167+
168+
29169
- name: Setup Pages
30170
uses: actions/configure-pages@v5
31171
- name: Upload artifact
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Lint PR'
2+
3+
on:
4+
# This allows the action to be used in a fork-based workflow, where
5+
# e.g. you want to accept pull requests in a public repository.
6+
# In this case, the configuration from the main branch of your repository will be used for the
7+
# check. This means that you need to have this configuration in the main branch for the action to
8+
# run at all (e.g. it won't run within a PR that adds the action initially).
9+
# Also if you change the configuration in a PR, the changes will not be reflected for the current
10+
# PR – only subsequent ones after the changes are in the main branch.
11+
pull_request_target:
12+
types:
13+
- opened
14+
- edited
15+
- reopened
16+
17+
jobs:
18+
main:
19+
name: Validate PR title
20+
runs-on: ubuntu-latest
21+
permissions:
22+
pull-requests: read
23+
steps:
24+
- uses: amannn/action-semantic-pull-request@v6
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
# Configure that a scope is optional
29+
requireScope: false
30+
# Configure additional validation for the subject based on a regex.
31+
# This ensures the subject doesn't start with an uppercase character.
32+
subjectPattern: ^(?![A-Z]).+$
33+
# If `subjectPattern` is configured, you can use this property to override
34+
# the default error message that is shown when the pattern doesn't match.
35+
# The variables `subject` and `title` can be used within the message.
36+
subjectPatternError: |
37+
The subject "{subject}" found in the pull request title "{title}"
38+
didn't match the configured pattern. Please ensure that the subject
39+
doesn't start with an uppercase character.
40+
# If the PR contains one of these newline-delimited labels, the
41+
# validation is skipped. If you want to rerun the validation when
42+
# labels change, you might want to use the `labeled` and `unlabeled`
43+
# event triggers in your workflow.
44+
ignoreLabels: |
45+
bot
46+
ignore-semantic-pull-request

0 commit comments

Comments
 (0)