Skip to content

Add CI status badge to README #2

Add CI status badge to README

Add CI status badge to README #2

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-cache-${{ runner.os }}-v1-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-cache-${{ runner.os }}-
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build --no-daemon
- name: Upload built jars
uses: actions/upload-artifact@v4
with:
name: neoforge-artifacts
path: |
neoforge/build/libs/*.jar
neoforge/build/devlibs/*.jar
dist/*.jar