Skip to content

Commit

Permalink
Add Scala 3 compilation to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adkian-sifive committed Dec 4, 2024
1 parent b3a8f8a commit ed16f4f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,44 @@ jobs:
- name: Compile with Mill
run: ./mill __.compile

mill3:
name: compile scala-3 project with mill
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '21'
- name: Install CIRCT
id: install-circt
if: ${{ inputs.circt }}
uses: circt/[email protected]
with:
version: ${{ inputs.circt }}
github-token: ${{ github.token }}
# TODO have install-circt do this
- name: Set CHISEL_FIRTOOL_PATH and CIRCT_INSTALL_PATH
if: steps.install-circt.outcome == 'success'
run: |
bindir=$(dirname $(which firtool))
installdir=$(dirname $bindir)
echo "CHISEL_FIRTOOL_PATH=$bindir" >> "$GITHUB_ENV"
echo "CIRCT_INSTALL_PATH=$installdir" >> "$GITHUB_ENV"
- name: Print firtool version
if: steps.install-circt.outcome == 'success'
run: |
echo "The CIRCT version used is:" >> $GITHUB_STEP_SUMMARY
echo \`\`\` >> $GITHUB_STEP_SUMMARY
$CHISEL_FIRTOOL_PATH/firtool -version >> $GITHUB_STEP_SUMMARY
echo \`\`\` >> $GITHUB_STEP_SUMMARY
- name: Compile with Mill
run: ./mill chisel[3.3.3].compile

doc:
name: Formatting
runs-on: ubuntu-22.04
Expand Down

0 comments on commit ed16f4f

Please sign in to comment.