Skip to content

Commit 45e188c

Browse files
committed
Merge branch 'main' into sip-67-strict-equality-improvements
2 parents 79fc91d + f031eab commit 45e188c

File tree

452 files changed

+3586
-60530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+3586
-60530
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -149,67 +149,14 @@ jobs:
149149
- name: Cmd Tests
150150
run: |
151151
./project/scripts/buildScalaBinary
152-
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
152+
./project/scripts/sbt ";scala3-bootstrapped/compile ;sbt-test/scripted scala2-compat/* ;scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
153153
./project/scripts/cmdTests
154154
./project/scripts/bootstrappedOnlyCmdTests
155155
156156
- name: Scala.js Test
157157
run: |
158158
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
159159
160-
- name: Test with Scala 2 library TASTy (fast)
161-
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty ;scala3-bootstrapped/testCompilation i5; scala3-bootstrapped/testCompilation tests/run/typelevel-peano.scala; scala3-bootstrapped/testOnly dotty.tools.backend.jvm.DottyBytecodeTests" # only test a subset of test to avoid doubling the CI execution time
162-
163-
- name: Test with Scala 2 library with CC TASTy (fast)
164-
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"
165-
166-
test_scala2_library_tasty:
167-
runs-on: [self-hosted, Linux]
168-
container:
169-
image: lampepfl/dotty:2024-10-18
170-
options: --cpu-shares 4096
171-
volumes:
172-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
173-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
174-
- ${{ github.workspace }}/../../cache/general:/root/.cache
175-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
176-
|| (
177-
github.event_name == 'pull_request'
178-
&& contains(github.event.pull_request.body, '[test_scala2_library_tasty]')
179-
)
180-
|| (
181-
github.event_name == 'workflow_dispatch'
182-
&& github.repository == 'scala/scala3'
183-
)"
184-
185-
steps:
186-
- name: Set JDK 17 as default
187-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
188-
189-
- name: Reset existing repo
190-
run: |
191-
git config --global --add safe.directory $GITHUB_WORKSPACE
192-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
193-
194-
- name: Checkout cleanup script
195-
uses: actions/checkout@v5
196-
197-
- name: Cleanup
198-
run: .github/workflows/cleanup.sh
199-
200-
- name: Git Checkout
201-
uses: actions/checkout@v5
202-
203-
- name: Add SBT proxy repositories
204-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
205-
206-
- name: Test with Scala 2 library TASTy
207-
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty ;scala3-bootstrapped/test"
208-
209-
- name: Test with Scala 2 library with CC TASTy
210-
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty ;scala3-bootstrapped/test"
211-
212-
213160
test_windows_fast:
214161
runs-on: [self-hosted, Windows]
215162
if: "(
@@ -234,7 +181,7 @@ jobs:
234181
uses: actions/checkout@v5
235182

236183
- name: Test
237-
run: sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/testCompilation; scala3-presentation-compiler/test; scala3-language-server/test"
184+
run: sbt ";scala3-bootstrapped/compile; scala3-presentation-compiler/test; scala3-language-server/test"
238185
shell: cmd
239186

240187
- name: build binary
@@ -289,58 +236,6 @@ jobs:
289236
run: sbt ";sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
290237
shell: cmd
291238

292-
mima:
293-
name: MiMa
294-
runs-on: [self-hosted, Linux]
295-
container:
296-
image: lampepfl/dotty:2024-10-18
297-
options: --cpu-shares 4096
298-
volumes:
299-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
300-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
301-
- ${{ github.workspace }}/../../cache/general:/root/.cache
302-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
303-
|| github.event_name == 'push'
304-
|| github.event_name == 'merge_group'
305-
|| (
306-
github.event_name == 'pull_request'
307-
&& !contains(github.event.pull_request.body, '[skip ci]')
308-
&& !contains(github.event.pull_request.body, '[skip mima]')
309-
)
310-
|| (
311-
github.event_name == 'workflow_dispatch'
312-
&& github.repository == 'scala/scala3'
313-
)"
314-
steps:
315-
- name: Set JDK 17 as default
316-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
317-
318-
- name: Reset existing repo
319-
run: |
320-
git config --global --add safe.directory $GITHUB_WORKSPACE
321-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
322-
323-
- name: Checkout cleanup script
324-
uses: actions/checkout@v5
325-
326-
- name: Cleanup
327-
run: .github/workflows/cleanup.sh
328-
329-
- name: Git Checkout
330-
uses: actions/checkout@v5
331-
332-
- name: Add SBT proxy repositories
333-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
334-
335-
- name: MiMa
336-
run: |
337-
./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues; scala2-library-bootstrapped/mimaReportBinaryIssues"
338-
339-
- name: TASTy MiMa
340-
run: |
341-
# This script cleans the compiler and recompiles it from scratch (keep as last run)
342-
./project/scripts/scala2-library-tasty-mima.sh
343-
344239
community_build_a:
345240
runs-on: [self-hosted, Linux]
346241
container:
@@ -557,66 +452,6 @@ jobs:
557452
- name: Test sbt
558453
run: ./project/scripts/sbt "sbt-test/scripted; sbt-community-build/scripted"
559454

560-
test_java8:
561-
runs-on: [self-hosted, Linux]
562-
container:
563-
image: lampepfl/dotty:2024-10-18
564-
options: --cpu-shares 4096
565-
volumes:
566-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
567-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
568-
- ${{ github.workspace }}/../../cache/general:/root/.cache
569-
570-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
571-
|| (
572-
github.event_name == 'push'
573-
&& startsWith(github.event.ref, 'refs/tags/')
574-
)
575-
|| (
576-
github.event_name == 'pull_request'
577-
&& !contains(github.event.pull_request.body, '[skip ci]')
578-
&& contains(github.event.pull_request.body, '[test_java8]')
579-
)
580-
|| (
581-
github.event_name == 'workflow_dispatch'
582-
&& github.repository == 'scala/scala3'
583-
)"
584-
585-
steps:
586-
####################################################################################
587-
## WARNING: DO NOT CHANGE THE JAVA VERSION HERE. THIS TEST IS SPECIFIC FOR JAVA 8 ##
588-
####################################################################################
589-
- name: Set JDK 8 as default
590-
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
591-
592-
- name: Reset existing repo
593-
run: |
594-
git config --global --add safe.directory $GITHUB_WORKSPACE
595-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
596-
597-
- name: Checkout cleanup script
598-
uses: actions/checkout@v5
599-
600-
- name: Cleanup
601-
run: .github/workflows/cleanup.sh
602-
603-
- name: Git Checkout
604-
uses: actions/checkout@v5
605-
606-
- name: Add SBT proxy repositories
607-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
608-
609-
- name: Test
610-
run: |
611-
./project/scripts/buildScalaBinary
612-
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*"
613-
./project/scripts/cmdTests
614-
./project/scripts/bootstrappedOnlyCmdTests
615-
616-
- name: Scala.js Test
617-
run: |
618-
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
619-
620455
publish_release:
621456
permissions:
622457
contents: write # for GH CLI to create a release
@@ -628,7 +463,7 @@ jobs:
628463
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
629464
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
630465
- ${{ github.workspace }}/../../cache/general:/root/.cache
631-
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8, build-sdk-package, build-msi-package]
466+
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, build-sdk-package, build-msi-package]
632467
if: "github.event_name == 'push'
633468
&& startsWith(github.event.ref, 'refs/tags/')"
634469

.github/workflows/lts-backport.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- uses: coursier/cache-action@v6
19-
- uses: VirtusLab/scala-cli-setup@v1.8.5
19+
- uses: VirtusLab/scala-cli-setup@v1.9.0
2020
- run: scala-cli ./project/scripts/addToBackportingProject.scala -- ${{ github.sha }}
2121
env:
2222
GRAPHQL_API_TOKEN: ${{ secrets.GRAPHQL_API_TOKEN }}

.github/workflows/publish-sdkman.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- platform: WINDOWS_64
4747
archive : 'scala3-${{ inputs.version }}-x86_64-pc-win32.zip'
4848
steps:
49-
- uses: sdkman/sdkman-release-action@2800d4359ae097a99afea7e0370f0c6e726182a4
49+
- uses: sdkman/sdkman-release-action@c70225d437d17182d19476702b671513dc8bf048
5050
with:
5151
CONSUMER-KEY : ${{ secrets.CONSUMER-KEY }}
5252
CONSUMER-TOKEN : ${{ secrets.CONSUMER-TOKEN }}

.github/workflows/release-maven-artifacts.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ jobs:
2222
java-version: 17
2323
cache: 'sbt'
2424
- uses: sbt/setup-sbt@v1
25+
- name: Import Scala PGP Key
26+
uses: crazy-max/ghaction-import-gpg@v6
27+
with:
28+
gpg_private_key: ${{ secrets.SCALA_PGP_KEY }}
29+
passphrase : ${{ secrets.SCALA_PGP_PASSPHRASE }}
30+
fingerprint : ${{ vars.SCALA_PGP_FINGERPRINT }}
2531
- name: Publish Artifacts to the Maven Repository
26-
run : sbt scala3-bootstrapped-new/publish
32+
run : sbt scala3-bootstrapped-new/publishSigned
2733
env:
2834
MAVEN_REPOSITORY_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
2935
MAVEN_REPOSITORY_TOKEN: ${{ secrets.MAVEN_REPOSITORY_TOKEN }}

0 commit comments

Comments
 (0)