Skip to content

Commit fefa7c5

Browse files
authored
Merge pull request #10025 from dotty-staging/simplify-sbt-publish
Only run the sbt scripted tests and CB when publishing sbt-dotty
2 parents 100931e + 3f74aa8 commit fefa7c5

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
test:
1414
runs-on: [self-hosted, Linux]
1515
container: lampepfl/dotty:2020-04-24
16+
if: "!(github.event_name == 'push' &&
17+
startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
1618

1719
steps:
1820
- name: Set JDK 11 as default
@@ -56,6 +58,8 @@ jobs:
5658
test_bootstrapped:
5759
runs-on: [self-hosted, Linux]
5860
container: lampepfl/dotty:2020-04-24
61+
if: "!(github.event_name == 'push' &&
62+
startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
5963

6064
steps:
6165
- name: Set JDK 11 as default
@@ -101,6 +105,8 @@ jobs:
101105
## the non-bootstrapped Linux runner.
102106
# test-windows:
103107
# runs-on: [self-hosted, Windows]
108+
# if: "!(github.event_name == 'push' &&
109+
# startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
104110

105111
# steps:
106112
# - name: Git Checkout
@@ -112,6 +118,8 @@ jobs:
112118

113119
test_bootstrapped-windows:
114120
runs-on: [self-hosted, Windows]
121+
if: "!(github.event_name == 'push' &&
122+
startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
115123

116124
steps:
117125
- name: Git Checkout
@@ -212,11 +220,12 @@ jobs:
212220
test_java8:
213221
runs-on: [self-hosted, Linux]
214222
container: lampepfl/dotty:2020-04-24
215-
if: (
223+
if: "(
216224
github.event_name == 'push' &&
217-
startsWith(github.event.ref, 'refs/tags/')
218-
) ||
219-
github.event_name == 'schedule'
225+
startsWith(github.event.ref, 'refs/tags/') &&
226+
!startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
227+
) ||
228+
github.event_name == 'schedule'"
220229

221230
steps:
222231
- name: Set JDK 8 as default
@@ -511,7 +520,7 @@ jobs:
511520
publish_sbt_release:
512521
runs-on: [self-hosted, Linux]
513522
container: lampepfl/dotty:2020-04-24
514-
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
523+
needs: [community_build, test_sbt]
515524
if: github.event_name == 'push' &&
516525
startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
517526

0 commit comments

Comments
 (0)