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

Sync with the stable documentation branch #19828

Open
wants to merge 426 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
426 commits
Select commit Hold shift + click to select a range
340303f
Add changelog for 3.3.1-RC6
Kordyjan Aug 22, 2023
5f8485e
Release 3.3.1-RC6
Kordyjan Aug 22, 2023
88e6725
Tweak selection from self types
odersky Aug 28, 2023
e008975
Backport add default scaladoc settings to scaladoc artifact publishin…
szymon-rd Aug 29, 2023
9659eb9
Backport " Tweak selection from self types" (#18475)
Kordyjan Aug 29, 2023
fb65458
Revert "Add reflect `defn.FunctionClass` overloads"
Kordyjan Aug 29, 2023
eaa7e18
Revert "Add reflect defn.FunctionClass overloads" (#18473)
Kordyjan Aug 29, 2023
24cd50d
Add changelog for 3.3.1-RC7
Kordyjan Aug 29, 2023
ca00576
Release 3.3.1-RC7
Kordyjan Aug 29, 2023
9b4ea8e
Add changelog for 3.3.1
Kordyjan Sep 5, 2023
721e7c8
Release 3.3.1
Kordyjan Sep 5, 2023
99ca930
Merge branch 'release-3.3.1' into language-reference-stable
Kordyjan Sep 7, 2023
3eb354b
Fix open-classes.md
dabrowski-adam Oct 1, 2023
3332943
Fix open-classes.md (#18630)
bishabosha Oct 2, 2023
bb5be18
Update package-objects.md
Bersier Dec 6, 2023
b36f728
Update docs: package objects are not deprecated yet. (#19213)
sjrd Dec 6, 2023
41f5990
Add changelog for 3.4.0-RC1
Kordyjan Dec 20, 2023
939ba35
Release 3.4.0-RC1
Kordyjan Dec 20, 2023
074128b
Update wildcards.md
Bersier Dec 28, 2023
20d0d59
Update context-functions.md
Bersier Jan 2, 2024
e9d38aa
Update context-functions.md (#19355)
nicolasstucki Jan 3, 2024
60b8437
Update wildcards.md (#19341)
nicolasstucki Jan 3, 2024
acdbcfa
Fix expandParam's use of argForParam/isArgPrefixOf.
dwijnand Jan 10, 2024
9ded263
Update copyright year in cmdScaladocTests
nicolasstucki Jan 3, 2024
e63f71f
Get current year for copyright footer
nicolasstucki Jan 3, 2024
ce9e699
Remove `ascriptionVarargsUnpacking` as we never used it
nicolasstucki Jan 8, 2024
e3cbb63
Make explicit arguments for context bounds an error from 3.5
odersky Dec 20, 2023
04d1cf1
Don't run migration operations in ReTypers
odersky Dec 21, 2023
04dc823
Fix test
odersky Dec 23, 2023
59c5391
Fix context bound application in enum desugaring
nicolasstucki Jan 3, 2024
dc60bcc
Address review comments
odersky Jan 8, 2024
5342719
Avoid generating given definitions that loop
odersky Dec 17, 2023
4547e1b
Use experimental language import to enable the new behavior
odersky Dec 18, 2023
4bb0aaa
Make the new behavior dependent on source >= 3.4
odersky Dec 18, 2023
a48a759
Restrict the new rules to givens that don't define a new class
odersky Dec 18, 2023
b0fecc5
Add tweaks and docs
odersky Dec 18, 2023
6b621a3
Swap two givens in Specs2 to satisfy new restriuction
odersky Dec 19, 2023
6f47702
Turn given loop prevention on for -source future
odersky Jan 7, 2024
65d9a0d
Adapt docs
odersky Jan 7, 2024
6dc38d9
Add test showing use of @nowarn
odersky Jan 8, 2024
d449f0f
Fix algorithm to prevent recursive givens
odersky Jan 10, 2024
b9857ef
Regression test for 19417
odersky Jan 11, 2024
9037df2
Remove an incompatible java api method in java 8 from a test
jchyb Jan 11, 2024
48e0340
Replace 3.5 with future
Kordyjan Jan 18, 2024
d4bf6ae
Backport "Update copyright year in cmdScaladocTests" (#19474)
Kordyjan Jan 18, 2024
7263790
Backport "Avoid generating given definitions that loop" (#19477)
Kordyjan Jan 18, 2024
20d9f65
Backport "Remove `ascriptionVarargsUnpacking` as we never used it" (#…
Kordyjan Jan 18, 2024
8be96b0
Backport "Fix expandParam's use of argForParam/isArgPrefixOf." (#19466)
Kordyjan Jan 19, 2024
5fe047b
Backport "Make explicit arguments for context bounds an error from 3.…
Kordyjan Jan 19, 2024
88d9760
Add changelog for 3.4.0-RC2
Kordyjan Jan 19, 2024
a220621
Release 3.4.0-RC2
Kordyjan Jan 19, 2024
e9fa840
Sync language.scala with main
Kordyjan Jan 23, 2024
40fab51
Replace future with 3.5
Kordyjan Jan 23, 2024
c76806c
Add tests for context bounds migration
nicolasstucki Jan 22, 2024
600c525
Sync language.scala with main and backport "Add tests for context bou…
Kordyjan Jan 24, 2024
bc20aa6
Handle default implicits to context parameters under -3.4-migration
odersky Jan 22, 2024
5ee801e
Backport "Handle default implicits to context parameters under -3.4-m…
Kordyjan Jan 24, 2024
b1339d7
Add changelog for 3.4.0-RC3
Kordyjan Jan 24, 2024
64f8c80
Release 3.4.0-RC3
Kordyjan Jan 24, 2024
ec42994
Update derivation.md
Bersier Jan 29, 2024
22a9f59
Update derivation.md (#19557)
bishabosha Jan 29, 2024
1627f05
Update derivation.md
Bersier Jan 29, 2024
4789d09
jsoup: 1.14.3 → 1.17.2
fabianhjr-dealengine Jan 29, 2024
1fefb8e
Update derivation.md (#19559)
nicolasstucki Feb 1, 2024
bb3492f
Backport "jsoup: 1.14.3 → 1.17.2" to release-3.4.0 (#19584)
Kordyjan Feb 1, 2024
5ece528
Add changelog for 3.4.0-RC4
Kordyjan Feb 1, 2024
97a4238
Release 3.4.0-RC4
Kordyjan Feb 1, 2024
3997e79
Add changelog for 3.4.0
Kordyjan Feb 14, 2024
a92a463
Release 3.4.0
Kordyjan Feb 14, 2024
6310999
Revert "Implement SIP-42 - Support for binary integer literals"
Kordyjan Feb 14, 2024
53075ba
Add changelog for 3.4.1
Kordyjan Feb 14, 2024
59085f1
Release 3.4.1
Kordyjan Feb 14, 2024
97138fb
Fix the capture checking documentation
abgruszecki Feb 14, 2024
017c38d
Add GADT symbols when typing typing-ahead lambda bodies
dwijnand Feb 7, 2024
e6359f5
Extract shared prepareRhsCtx
dwijnand Feb 22, 2024
a83a4e0
[bp] Add GADT symbols when typing typing-ahead lambda bodies (#19771)
Kordyjan Feb 29, 2024
1eac8fb
Merge branch 'release-3.4.0' into language-reference-stable
Kordyjan Feb 29, 2024
30f86c5
Add dotty to the safe directories in nightly_documentation
hamzaremmal Feb 17, 2024
9f8f150
Address actions/runner#2033
hamzaremmal Feb 17, 2024
a086db7
Adapt for scala/scala3
hamzaremmal Mar 1, 2024
08be98c
Update links in the repository to scala/scala3
hamzaremmal Mar 1, 2024
7aa17c5
Adjust owner in `Interactive.contextOfPath` causing crash in `Implici…
rochala Mar 5, 2024
c31ddcd
Backport "Update links in the repository to scala/scala3" to Scala 3.…
Kordyjan Mar 12, 2024
0339598
Backport "Adjust owner in `Interactive.contextOfPath` causing crash i…
Kordyjan Mar 12, 2024
3cb5d70
Add changelog for 3.4.1-RC2
Kordyjan Mar 12, 2024
4465eda
Release 3.4.1-RC2
Kordyjan Mar 12, 2024
d4d71f5
Fix inline code formatting in documentation
kluen Mar 15, 2024
18c69f6
Fix inline code formatting in documentation (#19956)
nicolasstucki Mar 18, 2024
5c4967f
Add changelog for 3.4.1
Kordyjan Mar 27, 2024
3ffe322
Release 3.4.1
Kordyjan Mar 27, 2024
ab06ff6
Bring back old completions as a deprecated method
Kordyjan Mar 28, 2024
76cd2dc
Add changelog for 3.4.2-RC1
Kordyjan Mar 28, 2024
4029577
Release 3.4.2-RC1
Kordyjan Mar 28, 2024
1205601
Merge branch 'release-3.4.1' into language-reference-stable
Kordyjan Mar 29, 2024
cbd8408
Improve documentation of implicit conversions
rjolly Apr 5, 2024
56b276f
Implement match type amendment: extractors follow aliases and singletons
smarter Apr 10, 2024
bfa1852
Move logic under feature.experimental.betterMatchTypesExtractors
Kordyjan May 9, 2024
3e1c4de
DropSkolemMap: simplify logic
smarter May 7, 2024
11f01d2
Deprecate `StandardPlugin.init` in favor of `initialize` method takin…
WojciechMazur May 8, 2024
5fdfb97
New modularity language import
odersky Jan 7, 2024
813af69
Allow vals in using clauses of givens
odersky Nov 18, 2023
b5d48fd
A relaxation concerning exported type aliases
Kordyjan May 9, 2024
48e2aa7
Allow class parents to be refined types.
odersky Dec 13, 2023
96c76e9
Introduce tracked class parameters
odersky Apr 1, 2024
70fb91c
Make explicit arguments for context bounds an error from 3.5
odersky Apr 1, 2024
90e84b9
Drop restriction against typedefs at level * only
odersky Apr 1, 2024
62eed87
Allow types in given definitions to be infix types
odersky Apr 1, 2024
305dd2e
New syntax for given defs
odersky Apr 1, 2024
22b681c
Allow multiple context bounds in `{...}`
odersky Apr 1, 2024
a57a512
Allow renamings `as N` in context bounds
odersky Apr 2, 2024
9a96cf0
Implement `deferred` givens
odersky Apr 2, 2024
6016ce9
FIX: Allow ContextBoundParamNames to be unmangled.
odersky Apr 2, 2024
81679fa
Change rules for given prioritization
odersky Dec 21, 2023
555f67c
Allow context bounds in type declarations
odersky Apr 2, 2024
3437526
Make some context bound evidence params tracked
odersky Apr 2, 2024
d856e50
FIX: Fix typing of RefinedTypes with watching parents
odersky Apr 2, 2024
5fe6b5b
Also reduce term projections
odersky Jan 6, 2024
becdf88
Implement context bound companions
odersky Apr 2, 2024
5f3ff9f
Allow contecxt bounds with abstract `Self` types
odersky Apr 2, 2024
9d299d6
Add a doc page
odersky Apr 3, 2024
a6f918b
Fix Singleton
odersky Apr 5, 2024
0c941e2
Tweaks to doc pages
odersky Apr 6, 2024
09a6a26
Add Precise type class for precise type inference
odersky Apr 6, 2024
e82cfbe
Fix rebase breakage
odersky Apr 14, 2024
3b814bb
Delay roll-out of new prioritization scheme:
odersky Apr 17, 2024
a8f7585
Fix rebase breakage again
odersky Apr 28, 2024
dd8061f
Make best effort compilation work with context bound companions
odersky Apr 28, 2024
04d4023
Tweaks after review
odersky Apr 30, 2024
ff98f01
Fix rebase breakage
odersky May 6, 2024
0bcf69c
Make Singleton an erased class only under modularity import
odersky May 6, 2024
42de370
Address review comments
odersky May 6, 2024
6521822
Adress review comments with changed docs and new tests
odersky May 6, 2024
46c3eca
Update warn check files
odersky May 7, 2024
97afac0
Update InlayHints
odersky May 7, 2024
8482eb1
Fix typo
odersky May 7, 2024
cb37a1f
step 1: basic script that forwards to prebuilt launcher and overrides…
bishabosha Apr 22, 2024
1784e67
Resolve artefacts to a local repo:
bishabosha Apr 25, 2024
10bd87f
use scala-cli jar launcher (TODO: download automatically)
bishabosha Apr 26, 2024
237a592
refactor republishing to a plugin
bishabosha Apr 26, 2024
34e8fc5
download and cache launcher, add scalajs library
bishabosha Apr 29, 2024
4682b52
fix project/scripts/bootstrappedOnlyCmdTests for new scala launcher
bishabosha Apr 30, 2024
c6cc0a3
fix bash script tests
bishabosha May 3, 2024
eee90b4
escape % in java executable path in batch commands.
bishabosha May 6, 2024
eb3083b
Add a warning message when launching from scala.
bishabosha May 6, 2024
8daca0c
Windows - extract scala version from VERSION file
bishabosha May 6, 2024
b3d9aee
Windows - forward to scala-cli jar launcher
bishabosha May 6, 2024
230a078
properly convert path of repo to uri
bishabosha May 6, 2024
20009db
fix windows command tests
bishabosha May 7, 2024
cfbee38
adjust to new launcher scala cli 1.3.1
bishabosha May 7, 2024
205d045
remove scala-js from local caching
bishabosha May 7, 2024
fd672eb
escape error message in test
bishabosha May 7, 2024
95e53df
Disable windows tests for RC1
Kordyjan May 10, 2024
d08d71b
Filter out the dot directories form tests
Kordyjan May 10, 2024
638d15a
Add changelog for 3.4.2
Kordyjan May 13, 2024
0f7f990
Release 3.4.2
Kordyjan May 13, 2024
4ebe8f4
Take into account the version when releasing in the CI
hamzaremmal May 14, 2024
782d1f6
Add changelog for 3.5.0-RC1
Kordyjan May 14, 2024
a15fc7d
Release 3.5.0-RC1
Kordyjan May 14, 2024
473897c
Merge branch 'release-3.4.2' into language-reference-stable
Kordyjan May 16, 2024
4992e37
Backport: Avoid forcing whole package when using `-experimental`
smarter May 14, 2024
7885c24
This reverts one part of #20261. When we fail with both an ambiguity …
WojciechMazur Jun 17, 2024
f913d89
Treat 3.5-migration the same as 3.5 for a warning about implicit prio…
WojciechMazur Jun 17, 2024
0626b97
Set default source version to 3.5
WojciechMazur Jun 17, 2024
6c75005
Disable ClasspathTests.unglobClasspathVerifyTest (#20551)
hamzaremmal Jun 11, 2024
aac98c9
Adapt the release workflow to SIP-46 (#20565)
hamzaremmal Jun 14, 2024
edbb7c4
Adapts the workflow to the changes in #20351
WojciechMazur Jun 17, 2024
e005369
Avoid stacked thisCall contexts
odersky May 28, 2024
665bd20
Bundle scala cli in scala command (#20351)
bishabosha Jun 11, 2024
6fd3950
Backport "Bundle scala cli in scala command" to 3.5.0 (#20706)
WojciechMazur Jun 21, 2024
3d18e98
Revert "Disable windows tests for RC1"
WojciechMazur Jun 21, 2024
278559f
Revert "Disable windows tests for RC1" (#20708)
WojciechMazur Jun 21, 2024
df91f07
Fix incorrect paths to sha256 check sum files in release workflow
WojciechMazur Jun 21, 2024
1520e88
Add changelog for 3.5.0-RC2
WojciechMazur Jun 21, 2024
828c03e
Release 3.5.0-RC2
WojciechMazur Jun 21, 2024
ecf5a2e
Release .zip instead of .tar.gz for windows in sdkman
hamzaremmal Jun 19, 2024
3ecd982
Do not release to the UNIVERSAL platform in sdkman
hamzaremmal Jun 19, 2024
0a7b7fe
Upload zip files to sdkman instead of .tar.gz
hamzaremmal Jun 21, 2024
a9af5cc
replace pack command, do not produce lib directory, write classpath t…
bishabosha Jun 19, 2024
f7e72af
add back in copy of mapped sequence
bishabosha Jun 21, 2024
81e3cc4
read last line, split-off with-compiler classpath
bishabosha Jun 21, 2024
e74d681
Bump scala-cli to 1.4.0 (#20859)
hamzaremmal Jul 1, 2024
3f8e3f5
Backport "Release .zip instead of .tar.gz for windows in sdkman" to 3…
WojciechMazur Jul 2, 2024
e2674a8
Backport "SIP 46 - read classpath from file, remove lib directory in …
WojciechMazur Jul 2, 2024
c48b224
Backport "Bump scala-cli to 1.4.0" to 3.5.0 (#20909)
WojciechMazur Jul 2, 2024
d470b77
Fix failing CompletionScalaCliSuite tests due to circe releasing Scal…
WojciechMazur Jul 1, 2024
edc8cbc
Ignore failing tests instead of expecting for completions for both 0.…
WojciechMazur Jul 2, 2024
1591ac9
fix issue 20901: etaCollapse context bound type
bishabosha Jul 1, 2024
f8a2e56
update semanticdb test (restore references)
bishabosha Jul 1, 2024
a5c74e7
use Scala 2.13.13 stdlib (was .12)
SethTisue Feb 26, 2024
b357bc9
Upgrade Scala 2 to 2.13.14
WojciechMazur Jul 1, 2024
dcf708c
Phiscally remove the ignored Scala 2 library-aux files instead of fil…
WojciechMazur Jul 1, 2024
c042e57
Add --skip-cli-updates by default to the scala command
hamzaremmal Jul 1, 2024
91b8abd
Avoid useless warnings about priority change in implicit search
odersky May 25, 2024
9354ad5
Re-enable semanticdb test
odersky May 27, 2024
7ac5417
Update semanticDB expect files
odersky May 27, 2024
0b812bd
Drop priority change warnings that don't qualify
odersky May 28, 2024
1d993a7
Add test for #20484
odersky May 28, 2024
b4f3a7b
Backport "Priority warning fix alternative" to 3.5.0 (#20953)
WojciechMazur Jul 3, 2024
dea855f
Backport "Add --skip-cli-updates by default to the scala command" to …
WojciechMazur Jul 3, 2024
7560c46
Backport "Upgrade Scala 2 to 2.13.14 (was 2.13.12)" to 3.5.0 (#20955)
WojciechMazur Jul 3, 2024
9ca1d0a
Backport "fix issue 20901: etaCollapse context bound type" to 3.5.0 (…
WojciechMazur Jul 3, 2024
3677eaf
Use final result type to check selector bound
som-snytt Jul 3, 2024
f4bde0b
Backport "Use final result type to check selector bound" to 3.5.0 (#2…
WojciechMazur Jul 4, 2024
876b648
Add changelog for 3.5.0-RC3
WojciechMazur Jul 3, 2024
6abb51a
Release 3.5.0-RC3
WojciechMazur Jul 4, 2024
7a19b32
Fix symbol reference retrivial of `scala.caps.Caps` - it was changed …
WojciechMazur May 29, 2024
ec87e7d
Refine implicit priority change warnings
odersky Jul 5, 2024
3e1ed72
Fix -source for neg test
odersky Jul 5, 2024
450d233
Filter out more false positives in priority change warnings
odersky Jul 5, 2024
acffad6
Fix priority change logic for ranking
odersky Jul 8, 2024
dc9246a
Fix -source for neg test (2)
odersky Jul 5, 2024
22d9df0
Use pathing jars in cli commands
hamzaremmal Jul 8, 2024
1910ea9
Add support for Class-Path entries in Manifest
hamzaremmal Jul 8, 2024
1a1a77f
expand classpath in scala_legacy
bishabosha Jul 10, 2024
2084ccf
Backport "Fix symbol reference retrivial of `scala.caps.Caps`" to 3.5…
WojciechMazur Jul 11, 2024
744b1b7
Backport "Refine implicit priority change warnings" to 3.5.0 (#21171)
WojciechMazur Jul 11, 2024
a578242
Backport "Use pathing jars in cli commands" to 3.5.0 (#21172)
WojciechMazur Jul 11, 2024
32fd2ba
Backport "expand classpath of pathing jars in scala_legacy command " …
WojciechMazur Jul 11, 2024
fad86e3
Add changelog for 3.5.0-RC4
WojciechMazur Jul 11, 2024
97fc22c
Release 3.5.0-RC4
WojciechMazur Jul 11, 2024
a5514c5
emit generatedNonLocalClass in backend when callback is not enabled
bishabosha Jul 12, 2024
7342816
add test to assert classes are still reported
bishabosha Jul 16, 2024
137be13
Backport "emit generatedNonLocalClass in backend when callback is not…
WojciechMazur Jul 17, 2024
1e20d47
Add changelog for 3.5.0-RC5
WojciechMazur Jul 17, 2024
8e6b582
Release 3.5.0-RC5
WojciechMazur Jul 17, 2024
3c29355
Improve documentation of implicit conversions (#20336)
sjrd Jul 22, 2024
318054e
Revert "Approximate MatchTypes with lub of case bodies, if non-recurs…
WojciechMazur Jul 24, 2024
51629a2
Fix failing run-macros/type-show test
WojciechMazur Jul 24, 2024
6eac278
Revert "Approximate MatchTypes with lub of case bodies, if non-recurs…
WojciechMazur Jul 29, 2024
6a5e6e6
Add changelog for 3.5.0-RC6
WojciechMazur Jul 29, 2024
1fb613f
Release 3.5.0-RC6
WojciechMazur Jul 29, 2024
b079b11
Prefer extensions over conversions and implicits for member selection
EugeneFlesselle Jul 18, 2024
07ccc8d
A left-biased variant for implicit/given pairs
odersky Aug 5, 2024
8a41389
Compensate loss of transitivity
odersky Aug 5, 2024
0f0c20d
Delay priority change until 3.7
odersky Aug 5, 2024
f683458
Fix ranking logic
odersky Aug 6, 2024
33d7da8
Make priority change warning messages stable
odersky Aug 6, 2024
d439b58
Fix `healAmbiguous` to `compareAlternatives` with `disambiguate = true`
EugeneFlesselle Aug 6, 2024
73c6e88
Adjust compilation tests to backported changes
WojciechMazur Aug 7, 2024
a1882e1
Revert "Compensate loss of transitivity"
WojciechMazur Aug 7, 2024
95caecb
Backport "Fix healAmbiguous to compareAlternatives with disambiguate …
WojciechMazur Aug 8, 2024
d72e8e0
Add changelog for 3.5.0-RC7
WojciechMazur Aug 8, 2024
19534db
Release 3.5.0-RC7
WojciechMazur Aug 8, 2024
180deab
Add changelog for 3.5.0
Kordyjan Aug 12, 2024
834c973
Release 3.5.0
Kordyjan Aug 12, 2024
7590f91
Update hamzaremmal/sdkman-release-action action
hamzaremmal Aug 21, 2024
9da1ae8
Update hamzaremmal/sdkman-release-action & hamzaremmal/sdkman-default…
hamzaremmal Aug 21, 2024
7513ab5
Merge branch 'release-3.5.0' into language-reference-stable
WojciechMazur Aug 21, 2024
8dcaed1
Sync with 3.5.0 release
WojciechMazur Aug 21, 2024
80e09f7
Regenerate reference-expected-links after 3.5.0 merge
WojciechMazur Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
199 changes: 186 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ jobs:

- name: Cmd Tests
run: |
./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
./project/scripts/buildScalaBinary
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
./project/scripts/cmdTests
./project/scripts/bootstrappedOnlyCmdTests

Expand Down Expand Up @@ -230,7 +231,7 @@ jobs:
shell: cmd

- name: build binary
run: sbt "dist/pack" & bash -version
run: sbt "dist-win-x86_64/pack" & bash -version
shell: cmd

- name: cygwin tests
Expand Down Expand Up @@ -269,8 +270,12 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4

- name: build binary
run: sbt "dist-win-x86_64/pack"
shell: cmd

- name: Test
run: sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
shell: cmd

- name: Scala.js Test
Expand Down Expand Up @@ -596,7 +601,8 @@ jobs:

- name: Test
run: |
./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*"
./project/scripts/buildScalaBinary
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*"
./project/scripts/cmdTests
./project/scripts/bootstrappedOnlyCmdTests

Expand Down Expand Up @@ -763,13 +769,35 @@ jobs:

- name: Add SBT proxy repositories
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true

- name: Prepare Release
run: |
# Extract the release tag
- name: Extract the release tag
run : echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
# BUILD THE SDKs
- name: Build and pack the SDK (universal)
run : |
./project/scripts/sbt dist/packArchive
sha256sum dist/target/scala3-* > dist/target/sha256sum.txt
echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV

- name: Build and pack the SDK (linux x86-64)
run : |
./project/scripts/sbt dist-linux-x86_64/packArchive
sha256sum dist/linux-x86_64/target/scala3-* > dist/linux-x86_64/target/sha256sum.txt
- name: Build and pack the SDK (linux aarch64)
run : |
./project/scripts/sbt dist-linux-aarch64/packArchive
sha256sum dist/linux-aarch64/target/scala3-* > dist/linux-aarch64/target/sha256sum.txt
- name: Build and pack the SDK (mac x86-64)
run : |
./project/scripts/sbt dist-mac-x86_64/packArchive
sha256sum dist/mac-x86_64/target/scala3-* > dist/mac-x86_64/target/sha256sum.txt
- name: Build and pack the SDK (mac aarch64)
run : |
./project/scripts/sbt dist-mac-aarch64/packArchive
sha256sum dist/mac-aarch64/target/scala3-* > dist/mac-aarch64/target/sha256sum.txt
- name: Build and pack the SDK (win x86-64)
run : |
./project/scripts/sbt dist-win-x86_64/packArchive
sha256sum dist/win-x86_64/target/scala3-* > dist/win-x86_64/target/sha256sum.txt
# Create the GitHub release
- name: Create GitHub Release
id: create_gh_release
uses: actions/create-release@latest
Expand All @@ -782,7 +810,7 @@ jobs:
draft: true
prerelease: ${{ contains(env.RELEASE_TAG, '-') }}

- name: Upload zip archive to GitHub Release
- name: Upload zip archive to GitHub Release (universal)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -791,8 +819,7 @@ jobs:
asset_path: ./dist/target/scala3-${{ env.RELEASE_TAG }}.zip
asset_name: scala3-${{ env.RELEASE_TAG }}.zip
asset_content_type: application/zip

- name: Upload tar.gz archive to GitHub Release
- name: Upload tar.gz archive to GitHub Release (universal)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -802,7 +829,103 @@ jobs:
asset_name: scala3-${{ env.RELEASE_TAG }}.tar.gz
asset_content_type: application/gzip

- name: Upload SHA256 sum of the release artefacts to GitHub Release
- name: Upload zip archive to GitHub Release (linux x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-pc-linux.zip
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-pc-linux.zip
asset_content_type: application/zip
- name: Upload tar.gz archive to GitHub Release (linux x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-pc-linux.tar.gz
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-pc-linux.tar.gz
asset_content_type: application/gzip

- name: Upload zip archive to GitHub Release (linux aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-aarch64/target/scala3-${{ env.RELEASE_TAG }}-aarch64-pc-linux.zip
asset_name: scala3-${{ env.RELEASE_TAG }}-aarch64-pc-linux.zip
asset_content_type: application/zip
- name: Upload tar.gz archive to GitHub Release (linux aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-aarch64/target/scala3-${{ env.RELEASE_TAG }}-aarch64-pc-linux.tar.gz
asset_name: scala3-${{ env.RELEASE_TAG }}-aarch64-pc-linux.tar.gz
asset_content_type: application/gzip

- name: Upload zip archive to GitHub Release (mac x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-apple-darwin.zip
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-apple-darwin.zip
asset_content_type: application/zip
- name: Upload tar.gz archive to GitHub Release (mac x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-apple-darwin.tar.gz
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-apple-darwin.tar.gz
asset_content_type: application/gzip

- name: Upload zip archive to GitHub Release (mac aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-aarch64/target/scala3-${{ env.RELEASE_TAG }}-aarch64-apple-darwin.zip
asset_name: scala3-${{ env.RELEASE_TAG }}-aarch64-apple-darwin.zip
asset_content_type: application/zip
- name: Upload tar.gz archive to GitHub Release (mac aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-aarch64/target/scala3-${{ env.RELEASE_TAG }}-aarch64-apple-darwin.tar.gz
asset_name: scala3-${{ env.RELEASE_TAG }}-aarch64-apple-darwin.tar.gz
asset_content_type: application/gzip

- name: Upload zip archive to GitHub Release (win x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/win-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-pc-win32.zip
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-pc-win32.zip
asset_content_type: application/zip
- name: Upload tar.gz archive to GitHub Release (win x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/win-x86_64/target/scala3-${{ env.RELEASE_TAG }}-x86_64-pc-win32.tar.gz
asset_name: scala3-${{ env.RELEASE_TAG }}-x86_64-pc-win32.tar.gz
asset_content_type: application/gzip


- name: Upload SHA256 sum of the release artefacts to GitHub Release (universal)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -812,6 +935,56 @@ jobs:
asset_name: sha256sum.txt
asset_content_type: text/plain

- name: Upload SHA256 sum of the release artefacts to GitHub Release (linux x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-x86_64/target/sha256sum.txt
asset_name: sha256sum-x86_64-pc-linux.txt
asset_content_type: text/plain

- name: Upload SHA256 sum of the release artefacts to GitHub Release (linux aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/linux-aarch64/target/sha256sum.txt
asset_name: sha256sum-aarch64-pc-linux.txt
asset_content_type: text/plain

- name: Upload SHA256 sum of the release artefacts to GitHub Release (mac x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-x86_64/target/sha256sum.txt
asset_name: sha256sum-x86_64-apple-darwin.txt
asset_content_type: text/plain

- name: Upload SHA256 sum of the release artefacts to GitHub Release (mac aarch64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/mac-aarch64/target/sha256sum.txt
asset_name: sha256sum-aarch64-apple-darwin.txt
asset_content_type: text/plain

- name: Upload SHA256 sum of the release artefacts to GitHub Release (win x86-64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
asset_path: ./dist/win-x86_64/target/sha256sum.txt
asset_name: sha256sum-x86_64-pc-win32.txt
asset_content_type: text/plain

- name: Publish Release
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"

Expand Down
96 changes: 96 additions & 0 deletions .github/workflows/launchers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Test CLI Launchers on all the platforms
on:
pull_request:
workflow_dispatch:

jobs:
linux-x86_64:
name: Deploy and Test on Linux x64 architecture
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
- name: Build and test launcher command
run: ./project/scripts/native-integration/bashTests
env:
LAUNCHER_EXPECTED_PROJECT: "dist-linux-x86_64"

linux-aarch64:
name: Deploy and Test on Linux ARM64 architecture
runs-on: macos-latest
if: ${{ false }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
# https://github.com/actions/runner-images/issues/9369
- name: Install sbt
run: brew install sbt
- name: Build and test launcher command
run: ./project/scripts/native-integration/bashTests
env:
LAUNCHER_EXPECTED_PROJECT: "dist-linux-aarch64"

mac-x86_64:
name: Deploy and Test on Mac x64 architecture
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
# https://github.com/actions/runner-images/issues/9369
- name: Install sbt
run: brew install sbt
- name: Build and test launcher command
run: ./project/scripts/native-integration/bashTests
env:
LAUNCHER_EXPECTED_PROJECT: "dist-mac-x86_64"

mac-aarch64:
name: Deploy and Test on Mac ARM64 architecture
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
# https://github.com/actions/runner-images/issues/9369
- name: Install sbt
run: brew install sbt
- name: Build and test launcher command
run: ./project/scripts/native-integration/bashTests
env:
LAUNCHER_EXPECTED_PROJECT: "dist-mac-aarch64"

win-x86_64:
name: Deploy and Test on Windows x64 architecture
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
- name: Build the launcher command
run: sbt "dist-win-x86_64/pack"
- name: Run the launcher command tests
run: './project/scripts/native-integration/winTests.bat'
shell: cmd
Loading
Loading