Skip to content

Commit

Permalink
ci for json validation
Browse files Browse the repository at this point in the history
  • Loading branch information
snapdgn committed Jun 13, 2024
1 parent 7ad136c commit 3995137
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
opam pin --yes --no-action add .
opam install sail --yes
- name: Package sail as artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: sail-artifact
path: ~/.opam/5.0.0/bin/sail

- name: Test Sail
run: |
eval $(opam env)
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/check-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Validate Json

on:
workflow_dispatch:
workflow_run:
workflows: ["Build matrix"]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout `sail-riscv` repo
uses: actions/checkout@v3
with:
repository: ThinkOpenly/sail-riscv

- name: Download Sail artifact
uses: actions/download-artifact@v3
with:
name: sail-artifact

- name: Make Sail executable
run: |
chmod +x sail
sudo mv sail /usr/local/bin/sail
- name: Generate json
run: |
sail --version
make check-json

0 comments on commit 3995137

Please sign in to comment.