Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Workflow Actions setup #993

Merged
merged 27 commits into from
Nov 26, 2020
Merged

Github Workflow Actions setup #993

merged 27 commits into from
Nov 26, 2020

Conversation

lefou
Copy link
Member

@lefou lefou commented Nov 3, 2020

Enabled Github Actions for mill repository. The publish job might not work yet, but I already included it to outline the setup.

What's missing:

  • Add the environment variables with required publishing credentials to the Github Workflow settings /cc @lihaoyi
  • Review and adapt the publish scripts

@lefou
Copy link
Member Author

lefou commented Nov 3, 2020

We have two issue on the windows build:

  1. On Java 11 the docJar target fails, always. I've seen this on all of my GH Actions builds on Windows with various projects.
bsp.docJar java.lang.reflect.InvocationTargetException
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.base/java.lang.reflect.Method.invoke(Method.java:566)
    mill.scalalib.worker.ZincWorkerImpl.$anonfun$docJar$1(ZincWorkerImpl.scala:127)
    mill.scalalib.worker.ZincWorkerImpl.$anonfun$docJar$1$adapted(ZincWorkerImpl.scala:117)
    mill.api.FixSizedCache.withCachedValue(FixSizedCache.scala:62)
    mill.scalalib.worker.ZincWorkerImpl.withCompilers(ZincWorkerImpl.scala:370)
    mill.scalalib.worker.ZincWorkerImpl.docJar(ZincWorkerImpl.scala:117)
    mill.scalalib.ScalaModule.$anonfun$docJar$2(ScalaModule.scala:165)
    mill.define.ApplyerGenerated.$anonfun$zipMap$12(ApplicativeGenerated.scala:27)
    mill.define.Task$MappedDest.evaluate(Task.scala:392)
java.net.URISyntaxException: Illegal character in path at index 53: https://docs.oracle.com/en/java/javase/11/docs/api/C:\hostedtoolcache\windows\jdk\11.0.9\x64\jmods\java.base/java/lang/Enum.html
    java.base/java.net.URI$Parser.fail(URI.java:2913)
    java.base/java.net.URI$Parser.checkChars(URI.java:3084)
    java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)
    java.base/java.net.URI$Parser.parse(URI.java:3114)
    java.base/java.net.URI.<init>(URI.java:600)
    scala.tools.nsc.doc.html.HtmlPage.linkToHtml(HtmlPage.scala:145)
    scala.tools.nsc.doc.html.HtmlPage.toLinksIn$1(HtmlPage.scala:202)
    scala.tools.nsc.doc.html.HtmlPage.toLinksOut$1(HtmlPage.scala:194)
    scala.tools.nsc.doc.html.HtmlPage.typeToHtml(HtmlPage.scala:205)
    scala.tools.nsc.doc.html.page.EntityPage.bound0$1(Entity.scala:774)
    scala.tools.nsc.doc.html.page.EntityPage.boundsToHtml(Entity.scala:776)
    scala.tools.nsc.doc.html.page.EntityPage.boundsToHtml$(Entity.scala:771)
    scala.tools.nsc.doc.html.page.EntityPage$$anon$1.boundsToHtml(Entity.scala:1033)
    scala.tools.nsc.doc.html.page.EntityPage.tparam0$1(Entity.scala:840)
    scala.tools.nsc.doc.html.page.EntityPage.tparams0$1(Entity.scala:842)
    scala.tools.nsc.doc.html.page.EntityPage.tparamsToHtml$1(Entity.scala:845)
    scala.tools.nsc.doc.html.page.EntityPage.inside$1(Entity.scala:849)
    scala.tools.nsc.doc.html.page.EntityPage.signature(Entity.scala:910)
    scala.tools.nsc.doc.html.page.EntityPage.signature$(Entity.scala:799)
    scala.tools.nsc.doc.html.page.EntityPage$$anon$1.signature(Entity.scala:1033)
    scala.tools.nsc.doc.html.page.EntityPage.memberToHtml(Entity.scala:378)
    scala.tools.nsc.doc.html.page.EntityPage.memberToHtml$(Entity.scala:357)
    scala.tools.nsc.doc.html.page.EntityPage$$anon$1.memberToHtml(Entity.scala:1033)
    scala.tools.nsc.doc.html.page.EntityPage.$anonfun$memsDiv$1(Entity.scala:355)
    scala.tools.nsc.doc.html.page.EntityPage.memsDiv(Entity.scala:355)
    scala.tools.nsc.doc.html.page.EntityPage.memsDiv$(Entity.scala:353)
    scala.tools.nsc.doc.html.page.EntityPage$$anon$1.memsDiv(Entity.scala:1033)
    scala.tools.nsc.doc.html.page.EntityPage.$init$(Entity.scala:309)
    scala.tools.nsc.doc.html.page.EntityPage$$anon$1.<init>(Entity.scala:1033)
    scala.tools.nsc.doc.html.HtmlFactory.writeTemplates(HtmlFactory.scala:167)
    scala.tools.nsc.doc.html.HtmlFactory.generate(HtmlFactory.scala:155)
    scala.tools.nsc.doc.html.Doclet.generateImpl(Doclet.scala:30)
    scala.tools.nsc.doc.doclet.Generator.generate(Generator.scala:35)
    scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:139)
    scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:142)
    scala.tools.nsc.ScalaDoc.process(ScalaDoc.scala:46)
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.base/java.lang.reflect.Method.invoke(Method.java:566)
    mill.scalalib.worker.ZincWorkerImpl.$anonfun$docJar$1(ZincWorkerImpl.scala:127)
    mill.scalalib.worker.ZincWorkerImpl.$anonfun$docJar$1$adapted(ZincWorkerImpl.scala:117)
    mill.api.FixSizedCache.withCachedValue(FixSizedCache.scala:62)
    mill.scalalib.worker.ZincWorkerImpl.withCompilers(ZincWorkerImpl.scala:370)
    mill.scalalib.worker.ZincWorkerImpl.docJar(ZincWorkerImpl.scala:117)
    mill.scalalib.ScalaModule.$anonfun$docJar$2(ScalaModule.scala:165)
    mill.define.ApplyerGenerated.$anonfun$zipMap$12(ApplicativeGenerated.scala:27)
    mill.define.Task$MappedDest.evaluate(Task.scala:392)
  1. The scalajslib tests wont run, probably because of a too long command line.
scalajslib.test.test java.io.IOException: Cannot run program "java" (in directory "D:\a\mill\mill"): CreateProcess error=206, The filename or extension is too long
    java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    os.proc.proc$lzycompute$1(ProcessOps.scala:128)
    os.proc.proc$1(ProcessOps.scala:122)
    os.proc.spawn(ProcessOps.scala:135)
    mill.modules.Jvm$.spawnSubprocess(Jvm.scala:140)
    mill.modules.Jvm$.runSubprocess(Jvm.scala:82)
    mill.modules.Jvm$.runSubprocess(Jvm.scala:66)
    mill.scalalib.TestModule.$anonfun$testTask$1(JavaModule.scala:659)
    mill.define.ApplyerGenerated.$anonfun$zipMap$10(ApplicativeGenerated.scala:23)
    mill.define.Task$MappedDest.evaluate(Task.scala:392)
java.io.IOException: CreateProcess error=206, The filename or extension is too long
    java.lang.ProcessImpl.create(Native Method)
    java.lang.ProcessImpl.<init>(ProcessImpl.java:444)
    java.lang.ProcessImpl.start(ProcessImpl.java:139)
    java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    os.proc.proc$lzycompute$1(ProcessOps.scala:128)
    os.proc.proc$1(ProcessOps.scala:122)
    os.proc.spawn(ProcessOps.scala:135)
    mill.modules.Jvm$.spawnSubprocess(Jvm.scala:140)
    mill.modules.Jvm$.runSubprocess(Jvm.scala:82)
    mill.modules.Jvm$.runSubprocess(Jvm.scala:66)
    mill.scalalib.TestModule.$anonfun$testTask$1(JavaModule.scala:659)
    mill.define.ApplyerGenerated.$anonfun$zipMap$10(ApplicativeGenerated.scala:23)
    mill.define.Task$MappedDest.evaluate(Task.scala:392)

@lefou lefou merged commit 7981879 into com-lihaoyi:master Nov 26, 2020
@lefou lefou deleted the gh-wf branch November 26, 2020 07:57
@lefou lefou added this to the after 0.9.3 milestone Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant