Skip to content

Commit 67fc8cf

Browse files
committed
Use SBT proxy repositories in CI
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
1 parent 7ee1f1f commit 67fc8cf

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Git Checkout
3535
uses: actions/checkout@v2
3636

37+
- name: Add SBT proxy repositories
38+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
39+
3740
- name: Test
3841
run: |
3942
./project/scripts/sbt ";compile ;test"
@@ -63,6 +66,9 @@ jobs:
6366
- name: Git Checkout
6467
uses: actions/checkout@v2
6568

69+
- name: Add SBT proxy repositories
70+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
71+
6672
- name: Test
6773
run: |
6874
./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"
@@ -120,6 +126,9 @@ jobs:
120126
- name: Git Checkout
121127
uses: actions/checkout@v2
122128

129+
- name: Add SBT proxy repositories
130+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
131+
123132
- name: Test
124133
run: |
125134
git submodule sync
@@ -150,6 +159,9 @@ jobs:
150159
- name: Git Checkout
151160
uses: actions/checkout@v2
152161

162+
- name: Add SBT proxy repositories
163+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
164+
153165
- name: Test
154166
run: ./project/scripts/sbt sbt-dotty/scripted
155167

@@ -182,6 +194,9 @@ jobs:
182194
- name: Git Checkout
183195
uses: actions/checkout@v2
184196

197+
- name: Add SBT proxy repositories
198+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
199+
185200
- name: Test
186201
run: ./project/scripts/sbt ";compile ;test"
187202

@@ -212,6 +227,9 @@ jobs:
212227
- name: Git Checkout
213228
uses: actions/checkout@v2
214229

230+
- name: Add SBT proxy repositories
231+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
232+
215233
- name: Publish Nightly
216234
run: |
217235
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
@@ -242,6 +260,9 @@ jobs:
242260
- name: Git Checkout
243261
uses: actions/checkout@v2
244262

263+
- name: Add SBT proxy repositories
264+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
265+
245266
- name: Generate Website
246267
run: |
247268
./project/scripts/genDocs -doc-snapshot
@@ -284,6 +305,9 @@ jobs:
284305
- name: Git Checkout
285306
uses: actions/checkout@v2
286307

308+
- name: Add SBT proxy repositories
309+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
310+
287311
- name: Publish Release
288312
run: |
289313
./project/scripts/sbt dist/packArchive
@@ -362,6 +386,9 @@ jobs:
362386
- name: Git Checkout
363387
uses: actions/checkout@v2
364388

389+
- name: Add SBT proxy repositories
390+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
391+
365392
- name: Generate Website
366393
run: |
367394
./project/scripts/genDocs -doc-snapshot
@@ -403,6 +430,9 @@ jobs:
403430
- name: Git Checkout
404431
uses: actions/checkout@v2
405432

433+
- name: Add SBT proxy repositories
434+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
435+
406436
- name: Publish Dotty SBT Plugin Release
407437
run: |
408438
./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)