From 5987a3b80b3a77b024e058348b5e19ad961dbe51 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Tue, 11 Feb 2025 09:01:47 +0100 Subject: [PATCH] ci: compile with all MPS versions The previously added docker integration tests are necessary, but not a replacement for compiling against different MPS versions. The tests don't have a 100 % coverage and the static analysis of the compiler is still useful. Most breaking changes in the API can be detected without executing the code. --- .github/workflows/mps-compatibility.yaml | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/mps-compatibility.yaml diff --git a/.github/workflows/mps-compatibility.yaml b/.github/workflows/mps-compatibility.yaml new file mode 100644 index 00000000..40837eae --- /dev/null +++ b/.github/workflows/mps-compatibility.yaml @@ -0,0 +1,43 @@ +name: MPS compatibility + +on: + push: + branches: + - 'main' + pull_request: {} + # allow manual execution just in case + workflow_dispatch: + +jobs: + assemble-mps-components: + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + version: + - "2020.3" + - "2021.1" + - "2021.2" + - "2021.3" + - "2022.2" + - "2022.3" + - "2023.2" + - "2024.1" + - "2024.3" + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Set up Gradle + uses: gradle/gradle-build-action@v3 + - name: Assemble with ${{ matrix.version }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: >- + ./gradlew --build-cache + assemble + -Pmps.version.major=${{ matrix.version }}