Skip to content

Commit

Permalink
Seperate Setup and Jar task
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
C0D3-M4513R authored Nov 14, 2023
1 parent 9ec417e commit 09416a5
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ jobs:
tag: ${{ github.sha }}
#prerelease: true
draft: true


build:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -76,11 +75,49 @@ jobs:
gradle-build-scan-report: false
- name: Setup Ketting
run: ./gradlew setup
- name: Upload projects artifact
uses: actions/upload-artifact@v3
with:
name: projects-src
path: |
projects/
build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Cache .gradle
uses: burrunan/gradle-cache-action@v1
with:
# Enable concurrent cache save and restore
# Default is concurrent=false for better log readability
concurrent: true
# Disable caching of $HOME/.gradle/caches/*.*/generated-gradle-jars
save-generated-gradle-jars: false
# Disable publishing Gradle Build Scan URL to job report
gradle-build-scan-report: false
- name: Download project source from setup
uses: actions/download-artifact@v3
with:
name: projects-src
- name: Move to correct place
run: mv artifacts/projects-src/* .
- name: Delete projects-src artifact to not make mojang angry
if: ${{ always() }}
uses: geekyeggo/delete-artifact@v2
with:
name: projects-src
- name: Build Ketting Jar
run: ./gradlew kettingJar
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.name }}
name: build
path: |
projects/forge/build/libs/

0 comments on commit 09416a5

Please sign in to comment.