Skip to content

Commit c0195b9

Browse files
add yaml related pre-commit hooks
relates to #260
1 parent f91ce90 commit c0195b9

File tree

1,504 files changed

+13824
-15802
lines changed

Some content is hidden

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

1,504 files changed

+13824
-15802
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@
3535
]
3636
}
3737
},
38-
"forwardPorts": [
39-
8000, 8080
40-
]
38+
"forwardPorts": [8000, 8080]
4139
}

.github/workflows/nightly.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Regression test
22

33
on:
44
schedule:
5-
- cron: '30 2 * * *'
5+
- cron: "30 2 * * *"
66
workflow_dispatch:
77

88
jobs:
@@ -27,28 +27,28 @@ jobs:
2727
if: ${{ needs.check_date.outputs.should_run != 'false' }}
2828
runs-on: ubuntu-latest
2929
steps:
30-
- name: Clone Github Repo Action
31-
uses: actions/checkout@v4
32-
- name: Setup apptainer
33-
uses: eWaterCycle/[email protected]
34-
- name: Get container from cache
35-
id: cache-sif
36-
uses: actions/cache@v3
37-
with:
38-
path: .singularity/image.sif
39-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
40-
- name: Get gems and node files from cache
41-
id: cache-bundle-npm
42-
uses: actions/cache@v3
43-
with:
44-
path: |
45-
.home/.gems
46-
node_modules
47-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
48-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
49-
name: Build container
50-
run: ./bin/build_container
51-
- name: Setup project
52-
run: ./bin/setup
53-
- name: Run regression
54-
run: ./do test:nightly
30+
- name: Clone Github Repo Action
31+
uses: actions/checkout@v4
32+
- name: Setup apptainer
33+
uses: eWaterCycle/[email protected]
34+
- name: Get container from cache
35+
id: cache-sif
36+
uses: actions/cache@v3
37+
with:
38+
path: .singularity/image.sif
39+
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
40+
- name: Get gems and node files from cache
41+
id: cache-bundle-npm
42+
uses: actions/cache@v3
43+
with:
44+
path: |
45+
.home/.gems
46+
node_modules
47+
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
48+
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
49+
name: Build container
50+
run: ./bin/build_container
51+
- name: Setup project
52+
run: ./bin/setup
53+
- name: Run regression
54+
run: ./do test:nightly

.github/workflows/pages.yml

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy pages
22
on:
33
push:
44
branches:
5-
- main
5+
- main
66
workflow_dispatch:
77
permissions:
88
contents: read
@@ -18,73 +18,73 @@ jobs:
1818
name: github-pages
1919
url: ${{ steps.deployment.outputs.page_url }}
2020
steps:
21-
- name: Clone Github Repo Action
22-
uses: actions/checkout@v4
23-
- name: Setup apptainer
24-
uses: eWaterCycle/[email protected]
25-
- name: Get container from cache
26-
id: cache-sif
27-
uses: actions/cache@v3
28-
with:
29-
path: .singularity/image.sif
30-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
31-
- name: Get gems and node files from cache
32-
id: cache-bundle-npm
33-
uses: actions/cache@v3
34-
with:
35-
path: |
36-
.home/.gems
37-
node_modules
38-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
39-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
40-
name: Build container
41-
run: ./bin/build_container
42-
- name: Setup project
43-
run: ./bin/setup
44-
- name: Build manual
45-
run: ./do gen:html_manual MANUAL_NAME=isa VERSIONS=all
46-
- name: Build html documentation for generic_rv64
47-
run: ./do gen:html[generic_rv64]
48-
- name: Generate YARD docs
49-
run: ./do gen:tool_doc
50-
- name: Create _site/example_cfg
51-
run: mkdir -p _site/example_cfg
52-
- name: Create _site/manual
53-
run: mkdir -p _site/manual
54-
- name: Create _site/pdfs
55-
run: mkdir -p _site/pdfs
56-
- name: Create _site/htmls
57-
run: mkdir -p _site/htmls
58-
- name: Copy cfg html
59-
run: cp -R gen/cfg_html_doc/generic_rv64/html _site/example_cfg
60-
- name: Create RVA20 Profile Release PDF Spec
61-
run: ./do gen:profile[RVA20]
62-
- name: Copy RVA20 Profile Release PDF
63-
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVA20.pdf
64-
- name: Create RVA22 Profile Release PDF Spec
65-
run: ./do gen:profile[RVA22]
66-
- name: Copy RVA22 Profile Release PDF
67-
run: cp gen/profile_doc/pdf/RVA22.pdf _site/pdfs/RVA22.pdf
68-
- name: Create RVI20 Profile Release PDF Spec
69-
run: ./do gen:profile[RVI20]
70-
- name: Copy RVI20 Profile Release PDF
71-
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVI20.pdf
72-
- name: Create MC100 PDF Spec
73-
run: ./do gen:cert_model_pdf[MC100]
74-
- name: Copy MC100 PDF
75-
run: cp gen/certificate_doc/pdf/MC100.pdf _site/pdfs/MC100.pdf
76-
- name: Create MC100 HTML Spec
77-
run: ./do gen:cert_model_html[MC100]
78-
- name: Copy MC100 HTML
79-
run: cp gen/certificate_doc/html/MC100.html _site/htmls/MC100.html
80-
- name: Copy manual html
81-
run: cp -R gen/manual/isa/top/all/html _site/manual
82-
- name: Setup Pages
83-
uses: actions/configure-pages@v5
84-
- name: Upload artifact
85-
uses: actions/upload-pages-artifact@v3
86-
with:
87-
path: '_site'
88-
- name: Deploy to GitHub Pages
89-
id: deployment
90-
uses: actions/deploy-pages@v4
21+
- name: Clone Github Repo Action
22+
uses: actions/checkout@v4
23+
- name: Setup apptainer
24+
uses: eWaterCycle/[email protected]
25+
- name: Get container from cache
26+
id: cache-sif
27+
uses: actions/cache@v3
28+
with:
29+
path: .singularity/image.sif
30+
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
31+
- name: Get gems and node files from cache
32+
id: cache-bundle-npm
33+
uses: actions/cache@v3
34+
with:
35+
path: |
36+
.home/.gems
37+
node_modules
38+
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
39+
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
40+
name: Build container
41+
run: ./bin/build_container
42+
- name: Setup project
43+
run: ./bin/setup
44+
- name: Build manual
45+
run: ./do gen:html_manual MANUAL_NAME=isa VERSIONS=all
46+
- name: Build html documentation for generic_rv64
47+
run: ./do gen:html[generic_rv64]
48+
- name: Generate YARD docs
49+
run: ./do gen:tool_doc
50+
- name: Create _site/example_cfg
51+
run: mkdir -p _site/example_cfg
52+
- name: Create _site/manual
53+
run: mkdir -p _site/manual
54+
- name: Create _site/pdfs
55+
run: mkdir -p _site/pdfs
56+
- name: Create _site/htmls
57+
run: mkdir -p _site/htmls
58+
- name: Copy cfg html
59+
run: cp -R gen/cfg_html_doc/generic_rv64/html _site/example_cfg
60+
- name: Create RVA20 Profile Release PDF Spec
61+
run: ./do gen:profile[RVA20]
62+
- name: Copy RVA20 Profile Release PDF
63+
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVA20.pdf
64+
- name: Create RVA22 Profile Release PDF Spec
65+
run: ./do gen:profile[RVA22]
66+
- name: Copy RVA22 Profile Release PDF
67+
run: cp gen/profile_doc/pdf/RVA22.pdf _site/pdfs/RVA22.pdf
68+
- name: Create RVI20 Profile Release PDF Spec
69+
run: ./do gen:profile[RVI20]
70+
- name: Copy RVI20 Profile Release PDF
71+
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVI20.pdf
72+
- name: Create MC100 PDF Spec
73+
run: ./do gen:cert_model_pdf[MC100]
74+
- name: Copy MC100 PDF
75+
run: cp gen/certificate_doc/pdf/MC100.pdf _site/pdfs/MC100.pdf
76+
- name: Create MC100 HTML Spec
77+
run: ./do gen:cert_model_html[MC100]
78+
- name: Copy MC100 HTML
79+
run: cp gen/certificate_doc/html/MC100.html _site/htmls/MC100.html
80+
- name: Copy manual html
81+
run: cp -R gen/manual/isa/top/all/html _site/manual
82+
- name: Setup Pages
83+
uses: actions/configure-pages@v5
84+
- name: Upload artifact
85+
uses: actions/upload-pages-artifact@v3
86+
with:
87+
path: "_site"
88+
- name: Deploy to GitHub Pages
89+
id: deployment
90+
uses: actions/deploy-pages@v4

.github/workflows/regress.yml

Lines changed: 3 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Regression test
22
on:
33
pull_request:
44
branches:
5-
- main
5+
- main
66
workflow_dispatch:
77
jobs:
88
regress-smoke:
@@ -31,119 +31,5 @@ jobs:
3131
run: ./bin/build_container
3232
- name: Setup project
3333
run: ./bin/setup
34-
- name: Run smoke
35-
run: ./do test:smoke
36-
regress-gen-isa-manual:
37-
runs-on: ubuntu-latest
38-
needs: regress-smoke
39-
env:
40-
MANUAL_NAME: isa
41-
VERSIONS: all
42-
steps:
43-
- name: Clone Github Repo Action
44-
uses: actions/checkout@v4
45-
- name: Setup apptainer
46-
uses: eWaterCycle/[email protected]
47-
- name: Get container from cache
48-
id: cache-sif
49-
uses: actions/cache@v3
50-
with:
51-
path: .singularity/image.sif
52-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
53-
- name: Get gems and node files from cache
54-
id: cache-bundle-npm
55-
uses: actions/cache@v3
56-
with:
57-
path: |
58-
.home/.gems
59-
node_modules
60-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
61-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
62-
name: Build container
63-
run: ./bin/build_container
64-
- name: Generate HTML ISA manual
65-
run: ./do gen:html_manual
66-
regress-gen-ext-pdf:
67-
runs-on: ubuntu-latest
68-
needs: regress-smoke
69-
env:
70-
EXT: B
71-
VERSION: latest
72-
steps:
73-
- name: Clone Github Repo Action
74-
uses: actions/checkout@v4
75-
- name: Setup apptainer
76-
uses: eWaterCycle/[email protected]
77-
- name: Get container from cache
78-
id: cache-sif
79-
uses: actions/cache@v3
80-
with:
81-
path: .singularity/image.sif
82-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
83-
- name: Get gems and node files from cache
84-
id: cache-bundle-npm
85-
uses: actions/cache@v3
86-
with:
87-
path: |
88-
.home/.gems
89-
node_modules
90-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
91-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
92-
name: Build container
93-
run: ./bin/build_container
94-
- name: Generate extension PDF
95-
run: ./do gen:ext_pdf
96-
regress-gen-certificate:
97-
runs-on: ubuntu-latest
98-
needs: regress-smoke
99-
steps:
100-
- name: Clone Github Repo Action
101-
uses: actions/checkout@v4
102-
- name: Setup apptainer
103-
uses: eWaterCycle/[email protected]
104-
- name: Get container from cache
105-
id: cache-sif
106-
uses: actions/cache@v3
107-
with:
108-
path: .singularity/image.sif
109-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
110-
- name: Get gems and node files from cache
111-
id: cache-bundle-npm
112-
uses: actions/cache@v3
113-
with:
114-
path: |
115-
.home/.gems
116-
node_modules
117-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
118-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
119-
name: Build container
120-
run: ./bin/build_container
121-
- name: Generate extension PDF
122-
run: ./do gen:cert_model_pdf[MockCertificateModel]
123-
regress-gen-profile:
124-
runs-on: ubuntu-latest
125-
needs: regress-smoke
126-
steps:
127-
- name: Clone Github Repo Action
128-
uses: actions/checkout@v4
129-
- name: Setup apptainer
130-
uses: eWaterCycle/[email protected]
131-
- name: Get container from cache
132-
id: cache-sif
133-
uses: actions/cache@v3
134-
with:
135-
path: .singularity/image.sif
136-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
137-
- name: Get gems and node files from cache
138-
id: cache-bundle-npm
139-
uses: actions/cache@v3
140-
with:
141-
path: |
142-
.home/.gems
143-
node_modules
144-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
145-
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
146-
name: Build container
147-
run: ./bin/build_container
148-
- name: Generate extension PDF
149-
run: ./do gen:profile[MockProfileRelease]
34+
- name: Run regression
35+
run: ./do regress

0 commit comments

Comments
 (0)