.github/workflows/scala-cli-example.yml #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-22.04 | |
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/[email protected] | |
with: | |
files: chisel-example.scala |