mirror of
https://github.com/TheWhiteDog9487/ServerAddressSpaceFix.git
synced 2026-06-15 11:14:44 +08:00
同步Fabric Mod Template那边的Kotlin DSL官方配置 移除main入口类的`@Deprecated`标记 ( 我当初为什么要弃用它? 补全ChangeLog.md ( 已经彻底忘记它的存在了 更新Github Action配置 更新Gradle版本 由于本次更改不存在对玩家具有实质影响的内容,故合并到下一个Mod版本内一并发布
31 lines
912 B
YAML
31 lines
912 B
YAML
# Automatically build the project and run any configured tests for every push
|
|
# and submitted pull request. This can help catch issues that only occur on
|
|
# certain platforms or Java versions, and provides a first line of defence
|
|
# against bad commits.
|
|
|
|
name: build
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: checkout repository
|
|
uses: actions/checkout@v6
|
|
- name: validate gradle wrapper
|
|
uses: gradle/actions/wrapper-validation@v6
|
|
- name: setup jdk
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'microsoft'
|
|
- name: make gradle wrapper executable
|
|
run: chmod +x ./gradlew
|
|
- name: build
|
|
run: ./gradlew build
|
|
- name: capture build artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: Artifacts
|
|
path: build/libs/
|