Skip to content

Fix #258

Fix #258 #649

Workflow file for this run

name: Railcraft CI
on:
push:
branches:
- 1.20.x
pull_request:
branches:
- 1.20.x
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Validate wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
cache-read-only: false
- name: Build
run: ./gradlew build
- name: Test
run: ./gradlew runGameTestServer
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Railcraft-1.20.x-GitHub
path: build/libs