Skip to content

Commit 9ec54d1

Browse files
committed
fix: adapt the ci file to the latest state
1 parent a8d6cbf commit 9ec54d1

File tree

2 files changed

+8
-68
lines changed

2 files changed

+8
-68
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -51,58 +51,6 @@ env:
5151
# text on stderr and so can break tests which check the output of a program).
5252

5353
jobs:
54-
test_non_bootstrapped:
55-
runs-on: [self-hosted, Linux]
56-
container:
57-
image: lampepfl/dotty:2024-10-18
58-
options: --cpu-shares 4096
59-
volumes:
60-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
61-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
62-
- ${{ github.workspace }}/../../cache/general:/root/.cache
63-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
64-
|| github.event_name == 'push'
65-
|| (
66-
github.event_name == 'pull_request'
67-
&& !contains(github.event.pull_request.body, '[skip ci]')
68-
&& contains(github.event.pull_request.body, '[test_non_bootstrapped]')
69-
)
70-
|| (
71-
github.event_name == 'workflow_dispatch'
72-
&& github.repository == 'scala/scala3'
73-
)"
74-
steps:
75-
- name: Set JDK 17 as default
76-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
77-
78-
## Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
79-
- name: Reset existing repo
80-
run: |
81-
git config --global --add safe.directory $GITHUB_WORKSPACE
82-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
83-
84-
- name: Checkout cleanup script
85-
uses: actions/checkout@v5
86-
87-
- name: Cleanup
88-
run: .github/workflows/cleanup.sh
89-
90-
- name: Git Checkout
91-
uses: actions/checkout@v5
92-
93-
- name: Add SBT proxy repositories
94-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
95-
96-
- name: Test
97-
# DON'T add dist/Universal/stage!
98-
# Adding dist/Universal/stage bootstraps the compiler
99-
# which undermines the point of these tests:
100-
# to quickly run the tests without the cost of bootstrapping
101-
# and also to run tests when the compiler doesn't bootstrap
102-
run: |
103-
./project/scripts/sbt ";compile ;test"
104-
./project/scripts/cmdTests
105-
10654
test:
10755
runs-on: [self-hosted, Linux]
10856
container:
@@ -224,16 +172,8 @@ jobs:
224172
- name: Git Checkout
225173
uses: actions/checkout@v5
226174

227-
- name: build binary
228-
run: sbt "dist-win-x86_64/Universal/stage"
229-
shell: cmd
230-
231175
- name: Test
232-
run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
233-
shell: cmd
234-
235-
- name: Scala.js Test
236-
run: sbt ";sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
176+
run: sbt ";scala3-bootstrapped-new/compile ;scala3-compiler-bootstrapped-new/test"
237177
shell: cmd
238178

239179
community_build_a:
@@ -463,7 +403,7 @@ jobs:
463403
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
464404
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
465405
- ${{ github.workspace }}/../../cache/general:/root/.cache
466-
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, build-sdk-package, build-msi-package]
406+
needs: [test, community_build_a, community_build_b, community_build_c, test_sbt, build-sdk-package, build-msi-package]
467407
if: "github.event_name == 'push'
468408
&& startsWith(github.event.ref, 'refs/tags/')"
469409

project/ScalaLibraryPlugin.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ object ScalaLibraryPlugin extends AutoPlugin {
7878
}
7979

8080
var stamps = analysis.stamps
81-
for (file <- files;
82-
id <- file.relativeTo(reference);
83-
if filesToCopy(id.toString()); // Only Override Some Very Specific Files
84-
dest = target / (id.toString);
81+
for (file <- files;
82+
id <- file.relativeTo(reference);
83+
if filesToCopy(id.toString().replace("\\", "/")); // Only Override Some Very Specific Files
84+
dest = target / (id.toString);
8585
ref <- dest.relativeTo((LocalRootProject / baseDirectory).value)
86-
) {
86+
) {
8787
// Copy the files to the classDirectory
8888
IO.copyFile(file, dest)
8989
// Update the timestamp in the analysis
9090
stamps = stamps.markProduct(
91-
VirtualFileRef.of(s"$${BASE}/$ref"),
91+
VirtualFileRef.of(s"$${BASE}/$ref"),
9292
Stamper.forFarmHashP(dest.toPath()))
9393
}
9494

0 commit comments

Comments
 (0)