diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4eeffa85..19fbe926 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,3 +35,32 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 + + build: + needs: [ analyze ] + runs-on: ubuntu-24.04 + strategy: + matrix: + agent: + - clinical-domain-agent + - trust-center-agent + - research-domain-agent + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + cache: 'maven' + + - name: Build Dependencies + run: mvn -B install --projects .,api,util,test-util + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build Agent + run: mvn -B install --projects ${{ matrix.agent }} + env: + GITHUB_TOKEN: ${{ github.token }}