From 349be0327211ba80d8888471aa2549d80139d4a4 Mon Sep 17 00:00:00 2001 From: Griefed Date: Sat, 11 Nov 2023 13:25:46 +0100 Subject: [PATCH] Call sub:build --- .github/workflows/build.yml | 19 ++++++++++--------- .gitlab-ci.yml | 4 +++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b326ba..90cbfc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,23 +35,24 @@ jobs: - name: Update block and item implementations run: ./gradlew clean blockAndItemCodeGen - - name: Build - run: ./gradlew build - - - name: Capture Common build artifacts - uses: actions/upload-artifact@v3 - with: - name: Artifacts - path: Common/build/libs/ - + - name: Build Fabric + run: ./gradlew :Fabric:build - name: Capture Fabric build artifacts uses: actions/upload-artifact@v3 with: name: Artifacts path: Fabric/build/libs/ + - name: Build Forge + run: ./gradlew :Forge:build - name: Capture Forge build artifacts uses: actions/upload-artifact@v3 with: name: Artifacts path: Forge/build/libs/ + + - name: Capture Common build artifacts + uses: actions/upload-artifact@v3 + with: + name: Artifacts + path: Common/build/libs/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 755bb9a..38967ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,9 @@ Build Test: - chmod +x gradlew script: - echo "**** Building ****" - - "./gradlew clean build --info --full-stacktrace" + - "./gradlew clean blockAndItemCodeGen --info --full-stacktrace" + - "./gradlew :Fabric:build --info --full-stacktrace" + - "./gradlew :Forge:build --info --full-stacktrace" retry: 1 rules: - if: '$CI_SERVER_HOST == "git.griefed.de"'