parent
					
						
							
								10da8cfc54
							
						
					
				
			
			
				commit
				
					
						864a9133d2
					
				
			
		
					 2 changed files with 14 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -4,24 +4,29 @@ jobs:
 | 
			
		|||
    runs-on: docker
 | 
			
		||||
    container: debian:sid
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Prepare for installation
 | 
			
		||||
        run: apt update
 | 
			
		||||
      - name: Install JDK and other deps
 | 
			
		||||
        run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
 | 
			
		||||
        run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
 | 
			
		||||
 | 
			
		||||
      - name: Clone repository
 | 
			
		||||
        run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git .
 | 
			
		||||
 | 
			
		||||
      #- name: BuildTools for NMS
 | 
			
		||||
     #   run: mkdir /tmp/buildtools && cd /tmp/buildtools && curl -O https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && java -jar BuildTools.jar --rev 1.21.1 --remapped && cd
 | 
			
		||||
 | 
			
		||||
      - name: Download NMS
 | 
			
		||||
        run: ./tools/download_nms.sh ~
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      - name: Build for 1.21.1
 | 
			
		||||
        run: mvn clean package
 | 
			
		||||
        run: mkdir artifact && mvn clean package && mv target/*.jar artifact/
 | 
			
		||||
 | 
			
		||||
      - name: Build for 1.21.3
 | 
			
		||||
        run: mvn clean package -Dproject.spigot.version=1.21.3-R0.1-SNAPSHOT && mv target/*.jar artifact/
 | 
			
		||||
 | 
			
		||||
      - name: Build for 1.21.4
 | 
			
		||||
        run: mvn clean package -Dproject.spigot.version=1.21.4-R0.1-SNAPSHOT && mv target/*.jar artifact/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      - name: Upload artifacts
 | 
			
		||||
        uses: https://github.com/actions/upload-artifact@v3
 | 
			
		||||
        with:
 | 
			
		||||
          path: target
 | 
			
		||||
          path: artifact
 | 
			
		||||
							
								
								
									
										1
									
								
								pom.xml
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								pom.xml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -20,6 +20,7 @@
 | 
			
		|||
    </properties>
 | 
			
		||||
 | 
			
		||||
    <build>
 | 
			
		||||
        <finalName>${artifactId}-${version}+${project.spigot.version}</finalName>
 | 
			
		||||
        <resources>
 | 
			
		||||
            <resource>
 | 
			
		||||
                <directory>src/main/resources</directory>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue