Skip to content

Commit 85ac617

Browse files
committed
ci: convert the MPS compatibility workflow to a matrix strategy
This makes the workflow file more concise and also has the benefit of parallel execution on multiple runners, thereby avoiding the blown up disk space issue due to having all MPS versions on the disk in the same job.
1 parent 61a3894 commit 85ac617

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/mps-compatibility.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16+
strategy:
17+
matrix:
18+
version:
19+
- "2020.3.6"
20+
- "2021.1.4"
21+
- "2021.2.6"
22+
- "2021.3.3"
23+
- "2022.2"
24+
- "2022.3"
25+
1626
steps:
1727
- uses: actions/checkout@v3
1828
- name: Set up JDK 17
1929
uses: actions/setup-java@v3
2030
with:
2131
distribution: 'temurin'
2232
java-version: '17'
23-
- name: Build with MPS 2020.3.6
24-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2020.3.6
25-
- name: Build with MPS 2021.1.4
26-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2021.1.4
27-
- name: Build with MPS 2021.2.6
28-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2021.2.6
29-
- name: Build with MPS 2021.3.3
30-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2021.3.3
31-
- name: Build with MPS 2022.2
32-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2022.2
33-
- name: Build with MPS 2022.3
34-
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=2022.3
33+
- name: Build with ${{ matrix.version }}
34+
run: ./gradlew :mps-model-adapters:build :mps-model-server-plugin:build -Pmps.version=${{ matrix.version }}

0 commit comments

Comments
 (0)