Skip to content

Commit

Permalink
Fix cfg_html backend; add to regress
Browse files Browse the repository at this point in the history
  • Loading branch information
dhower-qc committed Jan 14, 2025
1 parent fdcc31e commit 1aca063
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
run: ./do test:smoke
regress-gen-isa-manual:
runs-on: ubuntu-latest
needs: regress-smoke
env:
MANUAL_NAME: isa
VERSIONS: all
Expand Down Expand Up @@ -72,9 +71,36 @@ jobs:
run: ./bin/build_container
- name: Generate HTML ISA manual
run: ./do gen:html_manual
regress-cfg-manual:
runs-on: ubuntu-latest
env:
SINGULARITY: 1
steps:
- name: Clone Github Repo Action
uses: actions/checkout@v4
- name: Setup apptainer
uses: eWaterCycle/[email protected]
- name: Get container from cache
id: cache-sif
uses: actions/cache@v4
with:
path: .singularity/image.sif
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
- name: Get gems and node files from cache
id: cache-bundle-npm
uses: actions/cache@v4
with:
path: |
.home/.gems
node_modules
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
name: Build container
run: ./bin/build_container
- name: Generate HTML ISA manual
run: ./do gen:html[generic_rv64]
regress-gen-ext-pdf:
runs-on: ubuntu-latest
needs: regress-smoke
env:
EXT: B
VERSION: latest
Expand Down Expand Up @@ -105,7 +131,6 @@ jobs:
run: ./do gen:ext_pdf
regress-gen-certificate:
runs-on: ubuntu-latest
needs: regress-smoke
env:
SINGULARITY: 1
steps:
Expand Down Expand Up @@ -134,7 +159,6 @@ jobs:
run: ./do gen:cert_model_pdf[MockCertificateModel]
regress-gen-profile:
runs-on: ubuntu-latest
needs: regress-smoke
env:
SINGULARITY: 1
steps:
Expand Down
1 change: 1 addition & 0 deletions lib/cfg_arch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def erb_env

@env = Class.new
@env.instance_variable_set(:@cfg, @cfg)
@env.instance_variable_set(:@cfg_arch, self)
@env.instance_variable_set(:@params, @params)

# add each parameter, either as a method (lowercase) or constant (uppercase)
Expand Down

0 comments on commit 1aca063

Please sign in to comment.