Skip to content

Commit

Permalink
Merge pull request #25 from lukflug/dev
Browse files Browse the repository at this point in the history
Added missing artifacts to CI
  • Loading branch information
lukflug authored Oct 3, 2021
2 parents 68fd71c + 31fa05b commit bfacc93
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,37 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build ExampleMod12
run: |
cd example-mod12
chmod +x gradlew
./gradlew build
- name: Build ExampleMod16-Fabric
run: |
cd example-mod16-fabric
chmod +x gradlew
./gradlew build
- name: Build ExampleMod16-Forge
run: |
cd example-mod16-forge
chmod +x gradlew
./gradlew build
- name: Build ExampleMod8-Fabric
run: |
cd example-mod8-fabric
chmod +x gradlew
./gradlew build
- name: Build ExampleMod8-Forge
run: |
cd example-mod8-forge
chmod +x gradlew
./gradlew build
- name: Upload package
uses: actions/upload-artifact@v2
with:
path: panelstudio*/build/libs/panelstudio-*.jar
path: |
panelstudio*/build/libs/panelstudio-*.jar
example-mod*/build/libs/*.jar
- name: Cleanup Gradle Cache
run: |
rm -rf ~/.gradle/caches/modules-2/modules-2.lock
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/mc17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle for Java 16

on: [push,pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
cd panelstudio-mc17
chmod +x gradlew
./gradlew build
- name: Build ExampleMod17
run: |
cd example-mod17
chmod +x gradlew
./gradlew build
- name: Upload package
uses: actions/upload-artifact@v2
with:
path: |
panelstudio*/build/libs/panelstudio-*.jar
example-mod*/build/libs/*.jar
- name: Cleanup Gradle Cache
run: |
rm -rf ~/.gradle/caches/modules-2/modules-2.lock
rm -rf ~/.gradle/caches/modules-2/gc.properties

0 comments on commit bfacc93

Please sign in to comment.