Skip to content

Full refactor of MetaMachine to merge MetaMachine and MetaMachineBlockEntity class and rework the machine inheritance tree #5789

Full refactor of MetaMachine to merge MetaMachine and MetaMachineBlockEntity class and rework the machine inheritance tree

Full refactor of MetaMachine to merge MetaMachine and MetaMachineBlockEntity class and rework the machine inheritance tree #5789

Workflow file for this run

name: Build pull request on push
on:
pull_request:
paths: ['**']
# Cancel previous jobs if PR gets another push
concurrency:
group: PR-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION_SUFFIX: "PR-${{ github.event.number }}"
steps:
- uses: actions/checkout@v4
- name: Check Path Filter
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- 'src/**'
- '*.gradle'
- 'gradle.properties'
- 'gradlew*'
- 'gradle/**'
- name: Setup Build
if: steps.filter.outputs.code == 'true'
uses: ./.github/actions/build_setup
- name: Build
if: steps.filter.outputs.code == 'true'
run: ./gradlew assemble
- name: Rename Jars
if: steps.filter.outputs.code == 'true'
run: for file in build/libs/*; do mv "$file" "${file/.jar/-${{ env.VERSION_SUFFIX }}.jar}"; done;
- name: Upload All Artifacts
if: steps.filter.outputs.code == 'true'
uses: actions/[email protected]
with:
name: Full Package
path: build/libs/*
retention-days: 15
- name: Upload Main Jar
if: steps.filter.outputs.code == 'true'
uses: actions/[email protected]
with:
name: Main Jar
path: build/libs/*[0-9]-PR-*.jar
retention-days: 15