Skip to content

main#2021: perf(discovery): remove additional candidate deduplication check #2021

main#2021: perf(discovery): remove additional candidate deduplication check

main#2021: perf(discovery): remove additional candidate deduplication check #2021

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Build and Upload Test Artifact
on:
push:
paths:
- 'src/**'
- 'buildSrc/**'
- 'patches/**'
- 'projects/**/build.gradle'
- 'projects/kirino'
- 'build.gradle'
- 'gradle.properties'
- 'script/**'
- '.github/**'
workflow_dispatch:
run-name: "${{ github.event_name == 'pull_request' && 'Pull Request Build, DO NOT DOWNLOAD' || format('{0}#{1}: {2}', github.ref_name, github.run_number, github.event.commits[0].message)}}"
permissions:
contents: read
jobs:
build:
name: Build and Upload Artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.0
with:
fetch-tags: true
fetch-depth: 0
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v5.0.0
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Get branch name
id: branch-names
uses: tj-actions/branch-names@v9.0.2
- name: Fix Gradle permission
run: chmod +x ./gradlew
- name: Setup Forge env
run: ./gradlew setup -Prun_number=${{ github.run_number }}
- name: Stop Gradle daemon
run: ./gradlew --stop
- name: Build Jars
run: ./gradlew build -Prun_number=${{ github.run_number }}
- name: Get version
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Upload Universal Jar
uses: actions/upload-artifact@v7
with:
path: projects/cleanroom/build/libs/*-universal.jar
archive: false
- name: Upload Installer Jar
uses: actions/upload-artifact@v7
with:
path: projects/cleanroom/build/libs/*-installer.jar
archive: false
- name: Upload MMC pack zip
uses: actions/upload-artifact@v7
with:
path: projects/cleanroom/build/libs/*.zip
archive: false