forked from chipsalliance/chisel
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 973 Bytes
/
scala-cli-example.yml
File metadata and controls
34 lines (30 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Generate Chisel Scala CLI Example
on:
release:
types: [created]
workflow_dispatch:
jobs:
generate_scala_cli_example:
name: Generate Scala CLI Example
uses: ./.github/workflows/build-scala-cli-example.yml
publish_example:
name: Generate Chisel Scala CLI Example
needs: [generate_scala_cli_example]
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Download Generated CLI Example
uses: actions/download-artifact@v4
with:
name: chisel-example.scala
- name: Display Example
run: |
echo '```scala' >> $GITHUB_STEP_SUMMARY
cat chisel-example.scala >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Upload To Release Page
if: github.event_name == 'release'
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
with:
files: chisel-example.scala