Skip to content

Commit eceecb0

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 8bf4ef6 + 32ad632 commit eceecb0

852 files changed

Lines changed: 12744 additions & 3888 deletions

File tree

Some content is hidden

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

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:24.04
2+
LABEL org.opencontainers.image.source=https://github.com/riscv/riscv-unified-db
23

34
ENV DEBIAN_FRONTEND=noninteractive
4-
SHELL ["/bin/bash", "-c"]
55

66
WORKDIR /workspace
77

.github/workflows/container.yml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,16 @@ jobs:
2929
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3030
with:
3131
path: .singularity/image.sif
32-
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}
33-
34-
- name: Get gems and node files from cache
35-
id: cache-bundle-npm
36-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
37-
with:
38-
path: |
39-
.home/.gems
40-
node_modules
41-
key: ${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('package-lock.json') }}
32+
key: ${{ hashFiles('container.def', 'bin/.container-tag') }}-${{ matrix.runner }}
4233

4334
- if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }}
4435
name: Build container
4536
run: ./bin/build_container
4637

4738
- name: Upload singularity container
4839
run: |
49-
singularity registry login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} oras://docker.io
50-
singularity push .singularity/image.sif oras://docker.io/riscvintl/spec-generator:${{ env.TAG }}
40+
singularity registry login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io
41+
singularity push .singularity/image.sif oras://ghcr.io/riscv/spec-generator:${{ env.TAG }}
5142
5243
build-docker-container:
5344
env:
@@ -76,6 +67,13 @@ jobs:
7667
username: ${{ secrets.DOCKERHUB_USERNAME }}
7768
password: ${{ secrets.DOCKERHUB_TOKEN }}
7869

70+
- name: Login to GHCR
71+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
72+
with:
73+
registry: ghcr.io
74+
username: ${{ github.actor }}
75+
password: ${{ secrets.GITHUB_TOKEN }}
76+
7977
- name: Set up Docker Buildx
8078
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
8179

@@ -85,7 +83,10 @@ jobs:
8583
with:
8684
file: ./.devcontainer/Dockerfile
8785
platforms: ${{ matrix.platform }}
88-
outputs: type=image,name=riscvintl/udb,push-by-digest=true,name-canonical=true,push=true
86+
outputs: type=image,"name=docker.io/riscvintl/udb,ghcr.io/riscv/udb",push-by-digest=true,name-canonical=true,push=true
87+
tags: docker.io/riscvintl/udb,ghcr.io/riscv/udb
88+
cache-from: type=gha
89+
cache-to: type=gha,mode=max
8990

9091
- name: Export digest
9192
run: |
@@ -133,10 +134,35 @@ jobs:
133134
- name: Create manifest list and push
134135
working-directory: /tmp/digests
135136
run: |
137+
CONTAINER_NAME=$(printf 'riscvintl/udb@sha256:%s ' *)
138+
echo "CONTAINER_NAME=$CONTAINER_NAME" >> $GITHUB_ENV
136139
docker buildx imagetools create \
137140
--tag riscvintl/udb:${{ env.TAG }} \
138141
$(printf 'riscvintl/udb@sha256:%s ' *)
139142
140143
- name: Inspect image
141144
run: |
142145
docker buildx imagetools inspect riscvintl/udb:${{ env.TAG }}
146+
147+
- name: Login to GHCR
148+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
149+
with:
150+
registry: ghcr.io
151+
username: ${{ github.actor }}
152+
password: ${{ secrets.GITHUB_TOKEN }}
153+
154+
- name: Create manifest list and push
155+
working-directory: /tmp/digests
156+
run: |
157+
docker buildx imagetools create \
158+
--tag ghcr.io/riscv/udb:${{ env.TAG }} \
159+
$(printf 'ghcr.io/riscv/udb@sha256:%s ' *)
160+
161+
- name: Inspect image
162+
run: |
163+
docker buildx imagetools inspect ghcr.io/riscv/udb:${{ env.TAG }}
164+
165+
- name: Remove intermediate containers
166+
run: |
167+
docker image rm ${{ env.CONTAINER_NAME }}
168+

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
- name: singularity setup
166166
uses: ./.github/actions/singularity-setup
167167
- name: Generate HTML ISA manual
168-
run: ./do gen:html_manual
168+
run: ./bin/generate manual -v all -f html
169169
- name: Upload HTML ISA manual
170170
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
171171
if: (github.event_name == 'push') && (github.ref_name == 'main')

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
run-id: ${{ github.event.workflow_run.id }}
235235
- name: Create index
236236
env:
237-
PAGES_URL: https://riscv-software-src.github.io/riscv-unified-db
237+
PAGES_URL: https://riscv.github.io/riscv-unified-db
238238
run: >
239239
cp doc/udb-block.svg _site/ &&
240240
ruby -r erb -r date -e "File.write('_site/index.html', ERB.new(File.read('tools/scripts/pages.html.erb'), trim_mode: '-').result(binding))"

.github/workflows/pr_title_check.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ on:
99
# Also if you change the configuration in a PR, the changes will not be reflected for the current
1010
# PR – only subsequent ones after the changes are in the main branch.
1111
pull_request_target:
12+
branches:
13+
- main
1214
types:
1315
- opened
1416
- edited
1517
- reopened
18+
- synchronize
19+
merge_group:
20+
types:
21+
- checks_requested
1622

1723
jobs:
1824
main:
@@ -22,6 +28,7 @@ jobs:
2228
pull-requests: read
2329
steps:
2430
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
31+
if: (github.event_name == 'pull_request_target')
2532
env:
2633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2734
with:
@@ -44,3 +51,5 @@ jobs:
4451
ignoreLabels: |
4552
bot
4653
ignore-semantic-pull-request
54+
- if: (github.event_name == 'merge_group')
55+
run: exit 0

0 commit comments

Comments
 (0)