mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Move file reporting to Makefile
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/AlmaLinux.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/AlmaLinux.yml
									
									
									
									
										vendored
									
									
								
							@@ -35,12 +35,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: RPM build MetricCollector
 | 
					    - name: RPM build MetricCollector
 | 
				
			||||||
      id: rpmbuild
 | 
					      id: rpmbuild
 | 
				
			||||||
      run: |
 | 
					      run: make RPM
 | 
				
			||||||
        make RPM
 | 
					 | 
				
			||||||
        RPM=~/rpmbuild/RPMS/*/*.rpm
 | 
					 | 
				
			||||||
        SRPM=~/rpmbuild/SRPMS/*.src.rpm
 | 
					 | 
				
			||||||
        echo ::set-output name="SRPM::${SRPM}"
 | 
					 | 
				
			||||||
        echo ::set-output name="RPM::${RPM}"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # See: https://github.com/actions/upload-artifact
 | 
					    # See: https://github.com/actions/upload-artifact
 | 
				
			||||||
    - name: Save RPM as artifact
 | 
					    - name: Save RPM as artifact
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							@@ -76,4 +76,9 @@ RPM: scripts/cc-metric-collector.spec
 | 
				
			|||||||
	# Build RPM and SRPM
 | 
						# Build RPM and SRPM
 | 
				
			||||||
	@rpmbuild -ba --define="VERS $${VERS}" --rmsource --clean "$${SPECFILE}"
 | 
						@rpmbuild -ba --define="VERS $${VERS}" --rmsource --clean "$${SPECFILE}"
 | 
				
			||||||
	# Report RPMs and SRPMs when in GitHub Workflow
 | 
						# Report RPMs and SRPMs when in GitHub Workflow
 | 
				
			||||||
	@printenv
 | 
						@if [[ "$${GITHUB_ACTIONS}" == true ]]; then
 | 
				
			||||||
 | 
						@     RPMFILES="$${RPMDIR}"/*/*.rpm
 | 
				
			||||||
 | 
						@     SRPMFILES="$${SRPMDIR}"/*.src.rpm
 | 
				
			||||||
 | 
						@     echo ::set-output name="SRPM::$${SRPM}"
 | 
				
			||||||
 | 
						@     echo ::set-output name="RPM::$${RPM}"
 | 
				
			||||||
 | 
						@fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user