From 598937e81cfd0bdc52dbad9d4b2370a04cd36aed Mon Sep 17 00:00:00 2001 From: bischoffz Date: Thu, 20 Jun 2024 15:25:35 -0400 Subject: [PATCH] update workflow --- .github/workflows/dev_build.yml | 19 ++++++++++++++++++- .github/workflows/dev_pr_build.yml | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml index d5b3dff77..948c65330 100644 --- a/.github/workflows/dev_build.yml +++ b/.github/workflows/dev_build.yml @@ -26,9 +26,22 @@ jobs: distribution: 'temurin' cache: maven + - name: Get Taskit Version + run: | + echo "taskit_version=v$(mvn help:evaluate -Dexpression=taskit.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" + + - name: Checkout Taskit + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} + uses: actions/checkout@v4 + with: + repository: HHS/ASPR-ms-taskit + path: taskit + ref: dev + - name: Get Util Version + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} run: | - echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" + echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file taskit/pom.xml)" >> "$GITHUB_ENV" - name: Checkout Util if: ${{ endsWith(env.util_version, 'SNAPSHOT') }} @@ -42,6 +55,10 @@ jobs: if: ${{ endsWith(env.util_version, 'SNAPSHOT') }} run: mvn clean install -DskipTests --file util/pom.xml + - name: Build Taskit + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} + run: mvn clean install -DskipTests --file taskit/pom.xml + - name: Build GCM run: mvn clean install --file pom.xml diff --git a/.github/workflows/dev_pr_build.yml b/.github/workflows/dev_pr_build.yml index 50153c4ce..b38e5f9b9 100644 --- a/.github/workflows/dev_pr_build.yml +++ b/.github/workflows/dev_pr_build.yml @@ -26,9 +26,22 @@ jobs: distribution: 'temurin' cache: maven + - name: Get Taskit Version + run: | + echo "taskit_version=v$(mvn help:evaluate -Dexpression=taskit.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" + + - name: Checkout Taskit + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} + uses: actions/checkout@v4 + with: + repository: HHS/ASPR-ms-taskit + path: taskit + ref: dev + - name: Get Util Version + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} run: | - echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" + echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file taskit/pom.xml)" >> "$GITHUB_ENV" - name: Checkout Util if: ${{ endsWith(env.util_version, 'SNAPSHOT') }} @@ -42,6 +55,10 @@ jobs: if: ${{ endsWith(env.util_version, 'SNAPSHOT') }} run: mvn clean install -DskipTests --file util/pom.xml + - name: Build Taskit + if: ${{ endsWith(env.taskit_version, 'SNAPSHOT') }} + run: mvn clean install -DskipTests --file taskit/pom.xml + - name: Build GCM run: mvn clean install --file pom.xml