Skip to content

Commit 0b2062d

Browse files
committed
connect CB with the new artifacts
1 parent b8b3fa1 commit 0b2062d

File tree

3 files changed

+71
-188
lines changed

3 files changed

+71
-188
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -168,177 +168,6 @@ jobs:
168168
run: sbt ";scala3-bootstrapped-new/compile ;scala3-compiler-bootstrapped-new/test"
169169
shell: cmd
170170

171-
community_build_a:
172-
runs-on: [self-hosted, Linux]
173-
container:
174-
image: lampepfl/dotty:2024-10-18
175-
options: --cpu-shares 4096
176-
volumes:
177-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
178-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
179-
- ${{ github.workspace }}/../../cache/general:/root/.cache
180-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
181-
|| github.event_name == 'push'
182-
|| github.event_name == 'merge_group'
183-
|| (
184-
github.event_name == 'pull_request'
185-
&& !contains(github.event.pull_request.body, '[skip ci]')
186-
&& !contains(github.event.pull_request.body, '[skip community_build]')
187-
&& !contains(github.event.pull_request.body, '[skip community_build_a]')
188-
)
189-
|| (
190-
github.event_name == 'workflow_dispatch'
191-
&& github.repository == 'scala/scala3'
192-
)"
193-
194-
steps:
195-
##############################################################################################
196-
## WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
197-
##############################################################################################
198-
- name: Set JDK 17 as default
199-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
200-
- name: Reset existing repo
201-
run: |
202-
git config --global --add safe.directory $GITHUB_WORKSPACE
203-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
204-
205-
- name: Checkout cleanup script
206-
uses: actions/checkout@v5
207-
208-
- name: Cleanup
209-
run: .github/workflows/cleanup.sh
210-
211-
- name: Git Checkout
212-
uses: actions/checkout@v5
213-
214-
- name: Add SBT proxy repositories
215-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
216-
217-
- name: Test
218-
run: |
219-
git config --global --add safe.directory $GITHUB_WORKSPACE
220-
git submodule sync
221-
git submodule update --init --recursive --jobs 7
222-
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
223-
224-
- name: Show dependency tracking file
225-
if: ${{ always() }}
226-
run: cat community-build/dotty-community-build-deps || true
227-
228-
community_build_b:
229-
runs-on: [self-hosted, Linux]
230-
container:
231-
image: lampepfl/dotty:2024-10-18
232-
options: --cpu-shares 4096
233-
volumes:
234-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
235-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
236-
- ${{ github.workspace }}/../../cache/general:/root/.cache
237-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
238-
|| github.event_name == 'push'
239-
|| github.event_name == 'merge_group'
240-
|| (
241-
github.event_name == 'pull_request'
242-
&& !contains(github.event.pull_request.body, '[skip ci]')
243-
&& !contains(github.event.pull_request.body, '[skip community_build]')
244-
&& !contains(github.event.pull_request.body, '[skip community_build_b]')
245-
)
246-
|| (
247-
github.event_name == 'workflow_dispatch'
248-
&& github.repository == 'scala/scala3'
249-
)"
250-
251-
steps:
252-
##############################################################################################
253-
## WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
254-
##############################################################################################
255-
- name: Set JDK 17 as default
256-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
257-
- name: Reset existing repo
258-
run: |
259-
git config --global --add safe.directory $GITHUB_WORKSPACE
260-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
261-
262-
- name: Checkout cleanup script
263-
uses: actions/checkout@v5
264-
265-
- name: Cleanup
266-
run: .github/workflows/cleanup.sh
267-
268-
- name: Git Checkout
269-
uses: actions/checkout@v5
270-
271-
- name: Add SBT proxy repositories
272-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
273-
274-
- name: Test
275-
run: |
276-
git config --global --add safe.directory $GITHUB_WORKSPACE
277-
git submodule sync
278-
git submodule update --init --recursive --jobs 7
279-
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
280-
281-
- name: Show dependency tracking file
282-
if: ${{ always() }}
283-
run: cat community-build/dotty-community-build-deps || true
284-
285-
community_build_c:
286-
runs-on: [self-hosted, Linux]
287-
container:
288-
image: lampepfl/dotty:2024-10-18
289-
options: --cpu-shares 4096
290-
volumes:
291-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
292-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
293-
- ${{ github.workspace }}/../../cache/general:/root/.cache
294-
if: "github.event_name == 'schedule' && github.repository == 'scala/scala3'
295-
|| github.event_name == 'push'
296-
|| github.event_name == 'merge_group'
297-
|| (
298-
github.event_name == 'pull_request'
299-
&& !contains(github.event.pull_request.body, '[skip ci]')
300-
&& !contains(github.event.pull_request.body, '[skip community_build]')
301-
&& !contains(github.event.pull_request.body, '[skip community_build_c]')
302-
)
303-
|| (
304-
github.event_name == 'workflow_dispatch'
305-
&& github.repository == 'scala/scala3'
306-
)"
307-
308-
steps:
309-
##############################################################################################
310-
## WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
311-
##############################################################################################
312-
- name: Set JDK 17 as default
313-
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
314-
- name: Reset existing repo
315-
run: |
316-
git config --global --add safe.directory $GITHUB_WORKSPACE
317-
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
318-
319-
- name: Checkout cleanup script
320-
uses: actions/checkout@v5
321-
322-
- name: Cleanup
323-
run: .github/workflows/cleanup.sh
324-
325-
- name: Git Checkout
326-
uses: actions/checkout@v5
327-
328-
- name: Add SBT proxy repositories
329-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
330-
331-
- name: Test
332-
run: |
333-
git config --global --add safe.directory $GITHUB_WORKSPACE
334-
git submodule sync
335-
git submodule update --init --recursive --jobs 7
336-
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
337-
338-
- name: Show dependency tracking file
339-
if: ${{ always() }}
340-
run: cat community-build/dotty-community-build-deps || true
341-
342171
publish_release:
343172
permissions:
344173
contents: write # for GH CLI to create a release
@@ -350,9 +179,8 @@ jobs:
350179
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
351180
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
352181
- ${{ github.workspace }}/../../cache/general:/root/.cache
353-
needs: [test, community_build_a, community_build_b, community_build_c, build-sdk-package, build-msi-package]
354-
if: "github.event_name == 'push'
355-
&& startsWith(github.event.ref, 'refs/tags/')"
182+
needs: [test, build-sdk-package, build-msi-package]
183+
if: "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')"
356184

357185
env:
358186
RELEASEBUILD: yes

.github/workflows/stdlib.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,3 +563,58 @@ jobs:
563563
- uses: sbt/setup-sbt@v1
564564
- name: Run SBT scripted tests
565565
run: ./project/scripts/sbt scala3-bootstrapped-new/scripted
566+
567+
community_build_a:
568+
runs-on: ubunutu-latest
569+
steps:
570+
- name: Checkout cleanup script
571+
uses: actions/checkout@v5
572+
with:
573+
submodules: true
574+
- name: Set up JDK 17
575+
uses: actions/setup-java@v5
576+
with:
577+
distribution: 'temurin'
578+
java-version: 17
579+
cache: 'sbt'
580+
- uses: sbt/setup-sbt@v1
581+
- name: Run Community Build A
582+
run: |
583+
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
584+
585+
community_build_b:
586+
runs-on: ubunutu-latest
587+
steps:
588+
- name: Checkout cleanup script
589+
uses: actions/checkout@v5
590+
with:
591+
submodules: true
592+
- name: Set up JDK 17
593+
uses: actions/setup-java@v5
594+
with:
595+
distribution: 'temurin'
596+
java-version: 17
597+
cache: 'sbt'
598+
- uses: sbt/setup-sbt@v1
599+
- name: Run Community Build B
600+
run: |
601+
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
602+
603+
604+
community_build_c:
605+
runs-on: ubunutu-latest
606+
steps:
607+
- name: Checkout cleanup script
608+
uses: actions/checkout@v5
609+
with:
610+
submodules: true
611+
- name: Set up JDK 17
612+
uses: actions/setup-java@v5
613+
with:
614+
distribution: 'temurin'
615+
java-version: 17
616+
cache: 'sbt'
617+
- uses: sbt/setup-sbt@v1
618+
- name: Run Community Build C
619+
run: |
620+
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"

project/Build.scala

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,21 +3545,21 @@ object Build {
35453545

35463546
val prepareCommunityBuild = taskKey[Unit]("Publish local the compiler and the sbt plugin. Also store the versions of the published local artefacts in two files, community-build/{scala3-bootstrapped.version,sbt-injected-plugins}.")
35473547

3548-
lazy val `community-build` = project.in(file("community-build")).
3549-
dependsOn(dottyLibrary(Bootstrapped)).
3550-
settings(commonBootstrappedSettings).
3551-
settings(
3548+
lazy val `community-build` = project.in(file("community-build"))
3549+
.settings(commonSettings)
3550+
.settings(
3551+
scalaVersion := referenceVersion,
35523552
prepareCommunityBuild := {
3553-
(`scala3-sbt-bridge` / publishLocal).value
3554-
(`scala3-interfaces` / publishLocal).value
3555-
(`tasty-core-bootstrapped` / publishLocal).value
3556-
(`scala3-library-bootstrapped` / publishLocal).value
3557-
(`scala3-tasty-inspector` / publishLocal).value
3558-
(`scaladoc` / publishLocal).value
3559-
(`scala3-compiler-bootstrapped` / publishLocal).value
3560-
(`scala3-bootstrapped` / publishLocal).value
3561-
(`scala3-library-bootstrappedJS` / publishLocal).value
3562-
// (publishLocal in `scala3-staging`).value
3553+
(`scala3-sbt-bridge-bootstrapped` / publishLocalBin).value
3554+
(`scala3-interfaces` / publishLocalBin).value
3555+
(`tasty-core-bootstrapped-new` / publishLocalBin).value
3556+
(`scala3-library-bootstrapped-new` / publishLocalBin).value
3557+
(`scala-library-bootstrapped` / publishLocalBin).value
3558+
(`scala3-tasty-inspector-new` / publishLocalBin).value
3559+
(`scaladoc-new` / publishLocalBin).value
3560+
(`scala3-compiler-bootstrapped-new` / publishLocalBin).value
3561+
(`scala-library-sjs` / publishLocalBin).value
3562+
(`scala3-library-sjs` / publishLocalBin).value
35633563
val pluginText =
35643564
s"""addSbtPlugin("org.scala-js" % "sbt-scalajs" % "$scalaJSVersion")"""
35653565
IO.write(baseDirectory.value / "sbt-injected-plugins", pluginText)

0 commit comments

Comments
 (0)