GitHub Actions: build and test on Windows [ci: last-only]#9496
GitHub Actions: build and test on Windows [ci: last-only]#9496SethTisue merged 3 commits intoscala:2.12.xfrom
Conversation
|
I think it's sufficient for this PR to just test on JDK 8. That would achieve parity with what we have on Jenkins. Adding testing on 11 and/or 16 can be considered separately; there is WIP for JDK 16 on 2.13.x at #9579. Once that lands we could consider whether to expand it to 2.12.x and/or expand it to 11. In the past week, I've been brushing up on GitHub Actions, adding it to some low-stakes repos to get a feel for it, so I now feel able to move forward with this PR. |
13b8f80 to
ec36685
Compare
|
For comparison purposes, a recent Jenkins run looks like: https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-windows/2098/consoleFull |
|
(I'll do some squashing before merge, and remove the temporary TODO thing in @lrytz I think we could merge this and shut down our Jenkins Windows stuff forever. |
|
Let's pair review this today so we can land it quickly. |
lrytz
left a comment
There was a problem hiding this comment.
Looks very good! Intuitively it seems to me we should align the scripts with what we do in .travis.yml.
| javac -version | ||
| generateRepositoriesConfig | ||
| # Pass these environment vars to subsequent steps | ||
| echo "SBT=sbt -Dsbt.override.build.repos=true -Dsbt.repository.config=${sbtRepositoryConfig}" >> $GITHUB_ENV |
There was a problem hiding this comment.
we don't do scripts/common / generateRepositoriesConfig / sbt.override.build.repos in the travis build, why here?
Lines 43 to 46 in 52cdad9
There was a problem hiding this comment.
Probably no reason except that we copied scripts/jobs/integrate/windows rather than copying .travis.yml, which have probably diverged from each other accidentally. I agree we should try for the simpler version.
There was a problem hiding this comment.
Cool! The pr testing in travis doesn't use anything from scripts, which is what should be our long-term goal.
| run: | | ||
| source scripts/common | ||
| parseScalaProperties buildcharacter.properties | ||
| $SBT -Dstarr.version=$maven_version_number -warn setupValidateTest testAll |
There was a problem hiding this comment.
beats me, but .travis.yml has it as well
There was a problem hiding this comment.
Ah, on 2.12, but not anymore on 2.13.
There was a problem hiding this comment.
ah, good catch. I'll remove it
|
I suggest we merge this anyway despite the divergence from |
|
OK if you prefer, though I don't think it's much work to align with travis, and we need to rebase this PR anyway to squash the commits and remove the TODO. |
Co-authored-by: Seth Tisue <seth@tisue.net>
Co-authored-by: Seth Tisue <seth@tisue.net>
5658e6e to
6aed5b0
Compare
|
followup PR is #9585 |
and remove obsolete CI scripts forward-ports scala#9496 and scala#9585 Co-authored-by: Seth Tisue <seth@tisue.net>
and remove obsolete CI scripts forward-ports scala#9496 and scala#9585 Co-authored-by: Seth Tisue <seth@tisue.net>
An experimental GitHub Actions port of #9493.
I've kept Ubuntu in the matrix for comparison.