Skip to content

(ci) implement fabric / neoforge CI #1

(ci) implement fabric / neoforge CI

(ci) implement fabric / neoforge CI #1

Workflow file for this run

name: build fabric
on:
pull_request:
branches: [ "**" ]
paths:
- .github/workflows/build-fabric.yaml
- build.gradle.kts
- gradle.properties
- gradle/**
- common/**
- fabric/**
push:
branches: [ "main" ]
paths:
- .github/workflows/build-fabric.yaml
- build.gradle.kts
- gradle.properties
- gradle/**
- common/**
- fabric/**
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: build
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.8
build-root-directory: fabric
arguments: build
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: capture build artifacts
if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: fabric/build/libs/