diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5be5985..2334b2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,22 +6,32 @@ on: - '**' jobs: - assembleWholeProject: - + build-and-test-with-mps: runs-on: ubuntu-latest + strategy: + matrix: + version: + - "2020.3.6" + - "2021.1.4" + - "2021.2.6" + - "2021.3.4" + - "2022.2.1" + - "2022.3" + - "2023.2" + steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '11' - - name: Assemble - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew build publishToMavenLocal -PciBuild=true - - name: Test MPSBuild Gradle Plugin - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: build-tools-gradle-test/ci.sh + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '17' + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + - name: Assemble + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew build publishToMavenLocal -PciBuild=true + - name: Test with ${{ matrix.version }} + run: cd build-tools-gradle-test && ./gradlew --build-cache build publishToMavenLocal -Pmps.version=${{ matrix.version }}