From ed16f4fe5e216b66369bc4344154be5c1f293bf5 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Wed, 4 Dec 2024 08:58:34 -0800 Subject: [PATCH] Add Scala 3 compilation to CI --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 655ff7e8cd..2bcb5cfa56 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/install-circt@v1.1.1 + 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