@@ -75,6 +75,222 @@ jobs:
7575 run : sbt ";scala3-bootstrapped-new/compile ;scala3-compiler-bootstrapped-new/test"
7676 shell : cmd
7777
78+ community_build_a :
79+ runs-on : [self-hosted, Linux]
80+ container :
81+ image : lampepfl/dotty:2024-10-18
82+ options : --cpu-shares 4096
83+ volumes :
84+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
85+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
86+ - ${{ github.workspace }}/../../cache/general:/root/.cache
87+ if : " github.event_name == 'schedule' && github.repository == 'scala/scala3'
88+ || github.event_name == 'push'
89+ || github.event_name == 'merge_group'
90+ || (
91+ github.event_name == 'pull_request'
92+ && !contains(github.event.pull_request.body, '[skip ci]')
93+ && !contains(github.event.pull_request.body, '[skip community_build]')
94+ && !contains(github.event.pull_request.body, '[skip community_build_a]')
95+ )
96+ || (
97+ github.event_name == 'workflow_dispatch'
98+ && github.repository == 'scala/scala3'
99+ )"
100+
101+ steps :
102+ # #############################################################################################
103+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
104+ # #############################################################################################
105+ - name : Set JDK 17 as default
106+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
107+ - name : Reset existing repo
108+ run : |
109+ git config --global --add safe.directory $GITHUB_WORKSPACE
110+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
111+
112+ - name : Checkout cleanup script
113+ uses : actions/checkout@v5
114+
115+ - name : Cleanup
116+ run : .github/workflows/cleanup.sh
117+
118+ - name : Git Checkout
119+ uses : actions/checkout@v5
120+
121+ - name : Add SBT proxy repositories
122+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
123+
124+ - name : Test
125+ run : |
126+ git config --global --add safe.directory $GITHUB_WORKSPACE
127+ git submodule sync
128+ git submodule update --init --recursive --jobs 7
129+ ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
130+
131+ - name : Show dependency tracking file
132+ if : ${{ always() }}
133+ run : cat community-build/dotty-community-build-deps || true
134+
135+ community_build_b :
136+ runs-on : [self-hosted, Linux]
137+ container :
138+ image : lampepfl/dotty:2024-10-18
139+ options : --cpu-shares 4096
140+ volumes :
141+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
142+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
143+ - ${{ github.workspace }}/../../cache/general:/root/.cache
144+ if : " github.event_name == 'schedule' && github.repository == 'scala/scala3'
145+ || github.event_name == 'push'
146+ || github.event_name == 'merge_group'
147+ || (
148+ github.event_name == 'pull_request'
149+ && !contains(github.event.pull_request.body, '[skip ci]')
150+ && !contains(github.event.pull_request.body, '[skip community_build]')
151+ && !contains(github.event.pull_request.body, '[skip community_build_b]')
152+ )
153+ || (
154+ github.event_name == 'workflow_dispatch'
155+ && github.repository == 'scala/scala3'
156+ )"
157+
158+ steps :
159+ # #############################################################################################
160+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
161+ # #############################################################################################
162+ - name : Set JDK 17 as default
163+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
164+ - name : Reset existing repo
165+ run : |
166+ git config --global --add safe.directory $GITHUB_WORKSPACE
167+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
168+
169+ - name : Checkout cleanup script
170+ uses : actions/checkout@v5
171+
172+ - name : Cleanup
173+ run : .github/workflows/cleanup.sh
174+
175+ - name : Git Checkout
176+ uses : actions/checkout@v5
177+
178+ - name : Add SBT proxy repositories
179+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
180+
181+ - name : Test
182+ run : |
183+ git config --global --add safe.directory $GITHUB_WORKSPACE
184+ git submodule sync
185+ git submodule update --init --recursive --jobs 7
186+ ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
187+
188+ - name : Show dependency tracking file
189+ if : ${{ always() }}
190+ run : cat community-build/dotty-community-build-deps || true
191+
192+ community_build_c :
193+ runs-on : [self-hosted, Linux]
194+ container :
195+ image : lampepfl/dotty:2024-10-18
196+ options : --cpu-shares 4096
197+ volumes :
198+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
199+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
200+ - ${{ github.workspace }}/../../cache/general:/root/.cache
201+ if : " github.event_name == 'schedule' && github.repository == 'scala/scala3'
202+ || github.event_name == 'push'
203+ || github.event_name == 'merge_group'
204+ || (
205+ github.event_name == 'pull_request'
206+ && !contains(github.event.pull_request.body, '[skip ci]')
207+ && !contains(github.event.pull_request.body, '[skip community_build]')
208+ && !contains(github.event.pull_request.body, '[skip community_build_c]')
209+ )
210+ || (
211+ github.event_name == 'workflow_dispatch'
212+ && github.repository == 'scala/scala3'
213+ )"
214+
215+ steps :
216+ # #############################################################################################
217+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA 3.8.0+ IS DISTRIBUTED USING JAVA 17. ##
218+ # #############################################################################################
219+ - name : Set JDK 17 as default
220+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
221+ - name : Reset existing repo
222+ run : |
223+ git config --global --add safe.directory $GITHUB_WORKSPACE
224+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
225+
226+ - name : Checkout cleanup script
227+ uses : actions/checkout@v5
228+
229+ - name : Cleanup
230+ run : .github/workflows/cleanup.sh
231+
232+ - name : Git Checkout
233+ uses : actions/checkout@v5
234+
235+ - name : Add SBT proxy repositories
236+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
237+
238+ - name : Test
239+ run : |
240+ git config --global --add safe.directory $GITHUB_WORKSPACE
241+ git submodule sync
242+ git submodule update --init --recursive --jobs 7
243+ ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
244+
245+ - name : Show dependency tracking file
246+ if : ${{ always() }}
247+ run : cat community-build/dotty-community-build-deps || true
248+
249+ test_sbt :
250+ runs-on : [self-hosted, Linux]
251+ container :
252+ image : lampepfl/dotty:2024-10-18
253+ options : --cpu-shares 4096
254+ volumes :
255+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
256+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
257+ - ${{ github.workspace }}/../../cache/general:/root/.cache
258+ if : " github.event_name == 'schedule' && github.repository == 'scala/scala3'
259+ || github.event_name == 'push'
260+ || (
261+ github.event_name == 'pull_request'
262+ && !contains(github.event.pull_request.body, '[skip ci]')
263+ && !contains(github.event.pull_request.body, '[skip test_sbt]')
264+ )
265+ || (
266+ github.event_name == 'workflow_dispatch'
267+ && github.repository == 'scala/scala3'
268+ )"
269+
270+ steps :
271+ - name : Set JDK 17 as default
272+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
273+
274+ - name : Reset existing repo
275+ run : |
276+ git config --global --add safe.directory $GITHUB_WORKSPACE
277+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
278+
279+ - name : Checkout cleanup script
280+ uses : actions/checkout@v5
281+
282+ - name : Cleanup
283+ run : .github/workflows/cleanup.sh
284+
285+ - name : Git Checkout
286+ uses : actions/checkout@v5
287+
288+ - name : Add SBT proxy repositories
289+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
290+
291+ - name : Test sbt
292+ run : ./project/scripts/sbt "sbt-test/scripted"
293+
78294 publish_release :
79295 permissions :
80296 contents : write # for GH CLI to create a release
0 commit comments