Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing artifacts to CI #25

Merged
merged 8 commits into from
Oct 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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