Skip to content

Matrix setup

Cédric Belin edited this page Aug 25, 2024 · 2 revisions

Setup multiple versions of Apache Ant on multiple operating systems:

jobs:
  test:
    name: Apache Ant ${{matrix.version}} on ${{matrix.platform}}
    runs-on: ${{matrix.platform}}
    strategy:
      matrix:
        platform: [ubuntu-latest, windows-latest]
        version: [1.9.x, latest]
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          distribution: temurin
          java-version: 21
      - uses: cedx/setup-ant@v3
        with:
          optional-tasks: true
          version: ${{matrix.version}}
      - run: ant -version
Clone this wiki locally