-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
78 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,69 @@ jobs: | |
# support binary compatibility for the plugin | ||
run: sbt ++${{ inputs.scala }} unipublish/mimaReportBinaryIssues | ||
|
||
repro-scala-cli-bug: | ||
name: repro-scala-cli-bug | ||
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: Pick CIRCT version | ||
id: circt-version | ||
run: | | ||
if [[ -z "${{ inputs.circt }}" ]]; then | ||
echo "version=version-file" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "version=${{ inputs.circt }}" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Install CIRCT | ||
uses: circt/[email protected] | ||
with: | ||
version: ${{ steps.circt-version.outputs.version }} | ||
github-token: ${{ github.token }} | ||
- name: Setup Scala-cli | ||
run: | | ||
curl -fL https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-pc-linux.gz | gzip -d > scala-cli | ||
chmod +x scala-cli | ||
sudo mv scala-cli /usr/local/bin/scala-cli | ||
- name: Run Tests | ||
run: | | ||
echo 'println("hello world")' > ./scala-cli-test.sc | ||
./mill version & | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
scala-cli --server=false ./scala-cli-test.sc | ||
mill: | ||
name: compile project with mill | ||
runs-on: ubuntu-22.04 | ||
|
@@ -114,17 +177,30 @@ jobs: | |
github-token: ${{ github.token }} | ||
- name: Set CIRCT Path Env | ||
run: echo "CIRCT_INSTALL_PATH=$(pwd)/circt" >> $GITHUB_ENV | ||
- name: Watch the file | ||
run: | | ||
sudo auditctl -w /home/runner/.cache/scalacli/local-repo/.1.5.0.tmp/version -p war | ||
sudo systemctl start audit | ||
- name: Install Lit | ||
run: pip install lit | ||
- name: Compile Mill | ||
run: ./mill __.compile | ||
run: ./mill --no-server __.compile | ||
- name: Setup Scala-cli | ||
run: | | ||
curl -fL https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-pc-linux.gz | gzip -d > scala-cli | ||
chmod +x scala-cli | ||
sudo mv scala-cli /usr/local/bin/scala-cli | ||
- name: Run Lit Tests | ||
run: ./mill -i lit[${{ inputs.scala }}].run | ||
run: ./mill --no-server lit[${{ inputs.scala }}].run | ||
- name: Debug | ||
if: always() | ||
run: | | ||
scala-cli --version | ||
tree /home/runner/.cache/scalacli/local-repo | ||
echo "=======" | ||
cat /home/runner/work/chisel/chisel/out/lit/2.13.14/litConfig.dest/Converter/.scala-build/stacktraces/* | ||
echo "=======" | ||
sudo ausearch -f /home/runner/.cache/scalacli/local-repo/.1.5.0.tmp/version | ||
doc: | ||
name: Formatting | ||
|