Skip to content

Commit

Permalink
Oh yeah java updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MoSadie committed Jun 10, 2024
1 parent 5e93acb commit a606185
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
fail-fast: false
matrix:
mod-loader: ['fabric', 'forge']
mc-version: ['1.17.1', '1.18.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20.1', "1.20.2", "1.20.4", "1.20.6"]
mc-version: ['1.17.1', '1.18.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20.1', "1.20.2", "1.20.4"]
#exclude:
# - mod-loader: 'forge'
# mc-version: '1.17'
Expand Down Expand Up @@ -146,6 +146,54 @@ jobs:
name: ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
path: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}/build/libs/*.jar

buildJava21:
name: Build ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
runs-on: ubuntu-latest
needs: buildCore

# Matrix of jobs to run
strategy:
fail-fast: false
matrix:
mod-loader: ['fabric', 'forge']
mc-version: ["1.20.6"]
#exclude:
# - mod-loader: 'forge'
# mc-version: '1.17'

steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v4

# Setup JDK
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3

# Download Core
- name: Download Core Artifact
uses: actions/download-artifact@v4
with:
name: maven
path: ~/.m2/repository

# Build Minecraft Mod
- name: Build Mod
working-directory: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}
run: './gradlew build --no-daemon'

# Upload Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
path: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}/build/libs/*.jar

buildPlugin:
name: Build Stream Deck Plugin
runs-on: windows-latest
Expand Down

0 comments on commit a606185

Please sign in to comment.