Skip to content

Commit

Permalink
merge actions jobs into a single job
Browse files Browse the repository at this point in the history
  • Loading branch information
dhower-qc committed Jul 25, 2024
1 parent f8e0e01 commit c4b36a1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
45 changes: 18 additions & 27 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
jobs:
regress:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Clone Github Repo Action
uses: actions/checkout@v4
Expand Down Expand Up @@ -42,30 +45,18 @@ jobs:
run: ./do idl_test
- name: Build html documentation for generic_rv64
run: ./do gen:html[generic_rv64]
ruby_doc:
runs-on: ubuntu-latest
steps:
- name: Generate YARD docs
run: ./do gen:tool_doc
pages:
needs:
- ruby_doc
- regress
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Create _site
run: mkdir -p _site
- name: Link cfg html
run: ln -s gen/cfg_html_doc/generic_rv64/html _site
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Generate YARD docs
run: ./do gen:tool_doc
- name: Create _site
run: mkdir -p _site
- name: Link cfg html
run: ln -s gen/cfg_html_doc/generic_rv64/html _site
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This repository contains:

=== Working examples:

* Generate configuration-specific documentation taylored to the set of implemented extensions and unnamed implementation options (_e.g._, `./do gen:html[generic_rv64]`).
* Generate https://riscv-software-src.github.io/riscv-unified-db/html/index.html[configuration-specific documentation] taylored to the set of implemented extensions and unnamed implementation options (_e.g._, `./do gen:html[generic_rv64]`).
** Only implemented extensions/instructions/CSRs are included
** Unreachable/unimplmented parts of the formal specification are pruned away
** A dedicated documentation page for every implemented instruction, including its encoding, pruned execution behavior, and what types of exceptions it may cause.
Expand Down

0 comments on commit c4b36a1

Please sign in to comment.