Skip to content

Commit 23fa526

Browse files
committed
Use SBT proxy repositories
Docker bind mounts obscure the existing contents of a directory, so the /root/.sbt/repositories file from the Docker image is no longer visible after we bind mount on top of /root/.sbt Docker named volumes don't have this issue, but we haven't found a way to isolate the volumes per runner.
1 parent 71d943a commit 23fa526

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Git Checkout
4343
uses: actions/checkout@v2
4444

45+
- name: Add SBT proxy repositories
46+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
47+
4548
- name: Test
4649
run: |
4750
./project/scripts/sbt ";compile ;test"
@@ -71,6 +74,9 @@ jobs:
7174
- name: Git Checkout
7275
uses: actions/checkout@v2
7376

77+
- name: Add SBT proxy repositories
78+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
79+
7480
- name: Test
7581
run: |
7682
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
@@ -135,6 +141,9 @@ jobs:
135141
- name: Git Checkout
136142
uses: actions/checkout@v2
137143

144+
- name: Add SBT proxy repositories
145+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
146+
138147
- name: Init Submodules
139148
run: |
140149
git submodule sync
@@ -163,6 +172,9 @@ jobs:
163172
- name: Git Checkout
164173
uses: actions/checkout@v2
165174

175+
- name: Add SBT proxy repositories
176+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
177+
166178
- name: Init Submodules
167179
run: |
168180
git submodule sync
@@ -196,6 +208,9 @@ jobs:
196208
- name: Git Checkout
197209
uses: actions/checkout@v2
198210

211+
- name: Add SBT proxy repositories
212+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
213+
199214
- name: Test
200215
run: ./project/scripts/sbt sbt-dotty/scripted
201216

@@ -228,6 +243,9 @@ jobs:
228243
- name: Git Checkout
229244
uses: actions/checkout@v2
230245

246+
- name: Add SBT proxy repositories
247+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
248+
231249
- name: Test
232250
run: ./project/scripts/sbt ";compile ;test"
233251

@@ -258,6 +276,9 @@ jobs:
258276
- name: Git Checkout
259277
uses: actions/checkout@v2
260278

279+
- name: Add SBT proxy repositories
280+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
281+
261282
- name: Publish Nightly
262283
run: |
263284
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
@@ -288,6 +309,9 @@ jobs:
288309
- name: Git Checkout
289310
uses: actions/checkout@v2
290311

312+
- name: Add SBT proxy repositories
313+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
314+
291315
- name: Generate Website
292316
run: |
293317
./project/scripts/genDocs -doc-snapshot
@@ -330,6 +354,9 @@ jobs:
330354
- name: Git Checkout
331355
uses: actions/checkout@v2
332356

357+
- name: Add SBT proxy repositories
358+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
359+
333360
- name: Publish Release
334361
run: |
335362
./project/scripts/sbt dist/packArchive
@@ -408,6 +435,9 @@ jobs:
408435
- name: Git Checkout
409436
uses: actions/checkout@v2
410437

438+
- name: Add SBT proxy repositories
439+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
440+
411441
- name: Generate Website
412442
run: |
413443
./project/scripts/genDocs -doc-snapshot
@@ -449,6 +479,9 @@ jobs:
449479
- name: Git Checkout
450480
uses: actions/checkout@v2
451481

482+
- name: Add SBT proxy repositories
483+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
484+
452485
- name: Publish Dotty SBT Plugin Release
453486
run: |
454487
./project/scripts/sbtPublish ";project sbt-dotty ;publishSigned ;sonatypeBundleRelease"

.github/workflows/repositories

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[repositories]
2+
local
3+
my-ivy-proxy-releases: https://scala-webapps.epfl.ch/artifactory/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
4+
my-maven-proxy-releases: https://scala-webapps.epfl.ch/artifactory/central/

0 commit comments

Comments
 (0)