Skip to content

Updated submodule to latest commit #21

Updated submodule to latest commit

Updated submodule to latest commit #21

Workflow file for this run

# 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
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install 7z and extract data
run: |
sudo apt-get install -y p7zip-full
mkdir ~/.gradle
mkdir ~/.gradle/caches
cd ~/.gradle/caches
7z x /home/runner/work/Traincraft-Community-Pack/Traincraft-Community-Pack/gradle/caches.7z.001 -y
cd /home/runner/work/Traincraft-Community-Pack/Traincraft-Community-Pack
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Retrieve base mod
run: ./gradlew getTrainAPI
- name: setup with Gradle
run: ./gradlew setupDecompWorkspace --refresh-dependencies idea
- name: Build with Gradle
run: ./gradlew setupDecompWorkspace --refresh-dependencies build
- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: TCCE-Addon-Experimental
path: build/libs/*