Skip to content

Commit ed16f4f

Browse files
committed
Add Scala 3 compilation to CI
1 parent b3a8f8a commit ed16f4f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,44 @@ jobs:
134134
- name: Compile with Mill
135135
run: ./mill __.compile
136136

137+
mill3:
138+
name: compile scala-3 project with mill
139+
runs-on: ubuntu-22.04
140+
steps:
141+
- name: Checkout
142+
uses: actions/checkout@v4
143+
with:
144+
ref: ${{ inputs.ref }}
145+
- name: Setup Java
146+
uses: actions/setup-java@v4
147+
with:
148+
distribution: 'adopt'
149+
java-version: '21'
150+
- name: Install CIRCT
151+
id: install-circt
152+
if: ${{ inputs.circt }}
153+
uses: circt/[email protected]
154+
with:
155+
version: ${{ inputs.circt }}
156+
github-token: ${{ github.token }}
157+
# TODO have install-circt do this
158+
- name: Set CHISEL_FIRTOOL_PATH and CIRCT_INSTALL_PATH
159+
if: steps.install-circt.outcome == 'success'
160+
run: |
161+
bindir=$(dirname $(which firtool))
162+
installdir=$(dirname $bindir)
163+
echo "CHISEL_FIRTOOL_PATH=$bindir" >> "$GITHUB_ENV"
164+
echo "CIRCT_INSTALL_PATH=$installdir" >> "$GITHUB_ENV"
165+
- name: Print firtool version
166+
if: steps.install-circt.outcome == 'success'
167+
run: |
168+
echo "The CIRCT version used is:" >> $GITHUB_STEP_SUMMARY
169+
echo \`\`\` >> $GITHUB_STEP_SUMMARY
170+
$CHISEL_FIRTOOL_PATH/firtool -version >> $GITHUB_STEP_SUMMARY
171+
echo \`\`\` >> $GITHUB_STEP_SUMMARY
172+
- name: Compile with Mill
173+
run: ./mill chisel[3.3.3].compile
174+
137175
doc:
138176
name: Formatting
139177
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)