Skip to content

Commit

Permalink
Draft for unified build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Bernhardt committed Nov 7, 2021
1 parent 0b651b6 commit 442cecd
Show file tree
Hide file tree
Showing 13 changed files with 561 additions and 200 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# 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: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Setup the workspace
run: ./gradlew setupCIWorkspace

- name: Build the mod
run: ./gradlew build

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest Development Build"
files: build/libs/*.jar

48 changes: 24 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
.gradle/
eclipse/
.settings/
.gradle
.settings
/.idea/
/run/
/build/
/eclipse/
.classpath
.project
.metadata/
bin/
out/
libs/
CREDITS-fml.txt
Core-Mod.iml
Core-Mod.ipr
Core-Mod.iws
LICENSE-fml.txt
MinecraftForge-Credits.txt
MinecraftForge-License.txt
README.txt
forge-1.7.10-10.13.2.1291-changelog.txt
CoreMod.iml
CoreMod.ipr
CoreMod.iws
Idea.bat
SetupDevWorkspaces.bat
/bin/
/config/
/crash-reports/
/logs/
options.txt
/saves/
usernamecache.json
banned-ips.json
banned-players.json
eula.txt
ops.json
server.properties
servers.dat
usercache.json
whitelist.json
world/
/out/
*.iml
*.ipr
*.iws
.idea/
*.db
*.bat
src/main/resources/mixins.*.json
2 changes: 0 additions & 2 deletions Win_SetupWorkspace_Eclipse.bat

This file was deleted.

2 changes: 0 additions & 2 deletions Win_SetupWorkspace_Idea.bat

This file was deleted.

Loading

0 comments on commit 442cecd

Please sign in to comment.