forked from GregTechCEu/GregTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GregTechCEu:master' into master
- Loading branch information
Showing
339 changed files
with
8,176 additions
and
3,378 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build Setup | ||
description: Setup for standard Java builds | ||
|
||
inputs: | ||
update-cache: | ||
description: If cache should be updated | ||
required: false | ||
default: false | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
cache-write-only: ${{ inputs.update-cache }} | ||
generate-job-summary: false | ||
gradle-home-cache-includes: | | ||
caches | ||
caches/retro_futura_gradle | ||
notifications | ||
jdks | ||
wrapper |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Runs formatting requirements | ||
name: Java Formatting | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: ['src/main/java/**', 'src/test/**'] | ||
pull_request: | ||
paths: ['src/main/java/**', 'src/test/**'] | ||
|
||
concurrency: | ||
group: formatting-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
formatting: | ||
name: Formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Build | ||
uses: ./.github/actions/build_setup | ||
|
||
- name: Run Spotless Formatting Check with Gradle | ||
run: ./gradlew spotlessCheck --warning-mode all --build-cache |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Manages labels on PRs before allowing merging | ||
name: Pull Request Labels | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
|
||
# if a second commit is pushed quickly after the first, cancel the first one's build | ||
concurrency: | ||
group: pr-labels-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Labels: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
pull-requests: read # needed to utilize required-labels | ||
|
||
steps: | ||
- name: Check for Merge-Blocking Labels # blocks merge if present | ||
uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: exactly | ||
count: 0 | ||
labels: 'status: do not merge' | ||
exit_type: failure | ||
|
||
- name: Check for Required Labels # require at least one of these labels | ||
uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: minimum | ||
count: 1 | ||
labels: 'type: feature, type: bug, type: refactor, type: translation, ignore changelog' | ||
exit_type: failure |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Nuclear Test Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- nuclear-fission | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write # needed to create GitHub releases | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Declare some variables | ||
id: vars | ||
shell: bash | ||
run: | | ||
echo "::set-output name=sha_short::$(git rev-parse --short $GITHUB_SHA)" | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Build Project | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: 'build --build-cache --daemon' # use the daemon here so the rest of the process is faster | ||
generate-job-summary: false | ||
gradle-home-cache-includes: | | ||
caches | ||
jdks | ||
notifications | ||
wrapper | ||
- name: Publish to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: "build/libs/*.jar" | ||
fail_on_unmatched_files: true | ||
prerelease: true | ||
tag_name: "nuclear-testing" | ||
name: "Nuclear Testing ${{ steps.vars.outputs.sha_short }}" | ||
body: "Testing Pre-release for GTCEu Nuclear Update" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.