Skip to content

Commit 10d1700

Browse files
Merge pull request #14848 from griggt/mima-ci-job
CI: move MiMa checks to separate job
2 parents 0fca562 + e767121 commit 10d1700

File tree

1 file changed

+43
-6
lines changed

1 file changed

+43
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ jobs:
115115
./project/scripts/cmdTests
116116
./project/scripts/bootstrappedOnlyCmdTests
117117
118-
- name: MiMa
119-
run: |
120-
./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues"
121-
122118
test_windows_fast:
123119
runs-on: [self-hosted, Windows]
124120
if: "(
@@ -189,6 +185,47 @@ jobs:
189185
run: sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
190186
shell: cmd
191187

188+
mima:
189+
name: MiMa
190+
runs-on: [self-hosted, Linux]
191+
container:
192+
image: lampepfl/dotty:2021-03-22
193+
options: --cpu-shares 4096
194+
volumes:
195+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
196+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
197+
- ${{ github.workspace }}/../../cache/general:/root/.cache
198+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
199+
|| github.event_name == 'push'
200+
|| (
201+
github.event_name == 'pull_request'
202+
&& !contains(github.event.pull_request.body, '[skip ci]')
203+
&& !contains(github.event.pull_request.body, '[skip mima]')
204+
)
205+
|| (
206+
github.event_name == 'workflow_dispatch'
207+
&& github.repository == 'lampepfl/dotty'
208+
)"
209+
steps:
210+
- name: Reset existing repo
211+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
212+
213+
- name: Checkout cleanup script
214+
uses: actions/checkout@v2
215+
216+
- name: Cleanup
217+
run: .github/workflows/cleanup.sh
218+
219+
- name: Git Checkout
220+
uses: actions/checkout@v2
221+
222+
- name: Add SBT proxy repositories
223+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
224+
225+
- name: MiMa
226+
run: |
227+
./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues"
228+
192229
community_build_a:
193230
runs-on: [self-hosted, Linux]
194231
container:
@@ -472,7 +509,7 @@ jobs:
472509
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
473510
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
474511
- ${{ github.workspace }}/../../cache/general:/root/.cache
475-
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, community_build_forward_compat, test_sbt, test_java8]
512+
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, community_build_forward_compat, test_sbt, test_java8]
476513
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
477514
env:
478515
NIGHTLYBUILD: yes
@@ -573,7 +610,7 @@ jobs:
573610
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
574611
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
575612
- ${{ github.workspace }}/../../cache/general:/root/.cache
576-
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
613+
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
577614
if: "github.event_name == 'push'
578615
&& startsWith(github.event.ref, 'refs/tags/')"
579616

0 commit comments

Comments
 (0)