submodule #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v2 | |
- 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/* |