Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
50bcc9f
Rough draft
robotgryphon Jan 24, 2021
90e5630
Merge branch '1.16.x' into feat/optional-props
robotgryphon Feb 8, 2021
1fed0cf
First passthrough of converting recipe serialization to CODEC system
robotgryphon Feb 28, 2021
420f88c
Address mixed recipe loader, refactors to component positional lookups
robotgryphon Feb 28, 2021
082f3f6
WIP changes
robotgryphon Feb 28, 2021
e807091
Layer loader flipping, current WIP
robotgryphon Feb 28, 2021
a35c1fd
Add unit testing, fix issues with layer ordering with codecs
robotgryphon Feb 28, 2021
b491085
Merge branch 'feat/codecs' into 1.16.x
robotgryphon Mar 1, 2021
3645640
Clean up packages more; blockstate matcher implementation and tests
robotgryphon Mar 1, 2021
af938cf
Finish implementation of optional blockstates in recipes
robotgryphon Mar 4, 2021
ae08589
Fix issue where invalid blocks were matched (no block id check)
robotgryphon Mar 4, 2021
b2f22c7
Version bump to b1
robotgryphon Mar 4, 2021
88e02f9
Network handling for field activation and deactivation
robotgryphon Mar 4, 2021
1755ca0
Fix test setup, sorry fops
robotgryphon Mar 4, 2021
e69a881
Add build information and setup from CM4 repo
robotgryphon Mar 4, 2021
d2773c8
Fix network registration
robotgryphon Mar 4, 2021
679846d
More packets
robotgryphon Mar 4, 2021
9494834
Add update tag handling to field projectors
robotgryphon Mar 4, 2021
65d93ca
More field data storage
robotgryphon Mar 4, 2021
a839af5
wree
robotgryphon Mar 4, 2021
d9403d3
Update documentation on recipe components
robotgryphon Apr 3, 2021
99c92a8
Mark projector dirty on field invalidation
robotgryphon Apr 3, 2021
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
72 changes: 72 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Generates a changelog between two version-tagged commits.
name: Generate Changelog

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: workflow_dispatch

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
generate:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Find Current Tag
id: current
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: '*-rc*'
commit-ish: '@'
skip-unshallow: 'true'

- name: Previous Tag
id: last
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: ${{steps.current.outputs.tag}}
skip-unshallow: 'true'

- name: Generate changelog
uses: jimschubert/beast-changelog-action@v1
with:
GITHUB_TOKEN: ${{github.token}}
CONFIG_LOCATION: .github/changelog.json
FROM: ${{steps.last.outputs.tag}}
TO: ${{steps.current.outputs.tag}}
OUTPUT: .github/CHANGELOG.md

- name: Read CHANGELOG file
id: getchangelog
run: echo "::set-output name=changelog::$(cat .github/CHANGELOG.md)"

- name: View Changelog
run: cat .github/CHANGELOG.md

- name: Add Artifact
uses: actions/upload-artifact@v2
with:
name: out
path: .github/CHANGELOG.md

view:
name: View Changelog Output
runs-on: ubuntu-latest
needs: [generate]
steps:
- name: Download Build Results
uses: actions/download-artifact@v2
with:
name: out
path: out

- run: cat out/CHANGELOG.md

# {needs.generate.outputs.changelog}}
60 changes: 60 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Gradle Tests (CI)

on: push

jobs:
vars:
name: Get Variables
runs-on: ubuntu-20.04
outputs:
release_type: ${{steps.cf_release_type.outputs.value }}
mod_version: ${{steps.mod_version.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Release Type
id: cf_release_type
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'cf_release_type'

- name: Mod Version
id: mod_version
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'mod_version'

jar:
name: Publish JAR
runs-on: ubuntu-20.04
needs: [vars]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: "8.0.282"

- 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: Test JAR with Gradle
run: ./gradlew test
# run: ./gradlew publish
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58 changes: 0 additions & 58 deletions .github/workflows/gradle.yml

This file was deleted.

152 changes: 152 additions & 0 deletions .github/workflows/manual-gh-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Creates releases on GH Packages based on a version tag
name: Manual Tagged Github Packages Release

on:
workflow_dispatch:

jobs:
vars:
name: Get Variables
runs-on: ubuntu-20.04
outputs:
release_type: ${{steps.cf_release_type.outputs.value }}
cf_project: ${{steps.cf_project.outputs.value }}
mod_version: ${{steps.mod_version.outputs.value }}
mod_id: ${{steps.mod_id.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Release Type
id: cf_release_type
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'cf_release_type'

- name: Project ID
id: cf_project
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'cf_project'

- name: Mod Version
id: mod_version
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'mod_version'

- name: Mod ID
id: mod_id
uses: christian-draeger/read-properties@1.0.1
with:
path: './gradle.properties'
property: 'mod_id'

changelog:
name: Generate Changelog (tags)
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Find Current Tag
id: current
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: '*-rc*'
commit-ish: '@'
skip-unshallow: 'true'

- name: Previous Tag
id: last
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: ${{steps.current.outputs.tag}}
skip-unshallow: 'true'

- name: Generate changelog
uses: jimschubert/beast-changelog-action@v1
with:
GITHUB_TOKEN: ${{github.token}}
CONFIG_LOCATION: .github/changelog.json
FROM: ${{steps.last.outputs.tag}}
TO: ${{steps.current.outputs.tag}}
OUTPUT: .github/CHANGELOG.md

- name: Read CHANGELOG file
id: getchangelog
run: echo "::set-output name=changelog::$(cat .github/CHANGELOG.md)"

- name: View Changelog
run: cat .github/CHANGELOG.md

- name: Add Artifact
uses: actions/upload-artifact@v2
with:
name: out
path: .github/CHANGELOG.md

jar:
name: Publish JAR
runs-on: ubuntu-20.04
needs: [vars, changelog]
steps:
- name: Download Changelog Results
uses: actions/download-artifact@v2
with:
name: out
path: changelog

- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: "8.0.282"

- 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: Publish package
run: ./gradlew publish
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add Artifact
uses: actions/upload-artifact@v2
with:
name: libs
path: |
build-out/${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
build-out/${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar

view:
name: View Changelog Output
runs-on: ubuntu-20.04
needs: [changelog]
steps:
- name: Download Build Results
uses: actions/download-artifact@v2
with:
name: out
path: changelog
- run: cat changelog/CHANGELOG.md
Loading