Remove unused imports #541
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Build and Test' | |
on: | |
push: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'microsoft' | |
java-version: '21' | |
- 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 with Gradle | |
run: | | |
./gradlew :Core:build --no-daemon | |
./gradlew :Forge:build --no-daemon | |
./gradlew :Fabric:build --no-daemon | |
./gradlew :NeoForge:build --no-daemon | |
./gradlew :Common:build --no-daemon | |
./gradlew :CommonApi:build --no-daemon | |
./gradlew :ForgeApi:build --no-daemon | |
./gradlew :FabricApi:build --no-daemon | |
./gradlew :NeoForgeApi:build --no-daemon | |
- name: Copy together artifacts | |
shell: bash | |
run: | | |
mkdir dist | |
cp Common/build/libs/*.jar dist | |
cp CommonApi/build/libs/*.jar dist | |
cp Core/build/libs/*.jar dist | |
cp Fabric/build/libs/*.jar dist | |
cp FabricApi/build/libs/*.jar dist | |
cp Forge/build/libs/*.jar dist | |
cp ForgeApi/build/libs/*.jar dist | |
cp NeoForge/build/libs/*.jar dist | |
cp NeoForgeApi/build/libs/*.jar dist | |
cp Gui/build/libs/*.jar dist | |
cp Library/build/libs/*.jar dist | |
- uses: actions/upload-artifact@v4 | |
with: | |
if-no-files-found: error | |
path: dist/* |