Create main.yml
added GHA
This commit is contained in:
		
							
								
								
									
										50
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
				
			|||||||
 | 
					name: main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  packages:
 | 
				
			||||||
 | 
					    name: test packages
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        pkgs:
 | 
				
			||||||
 | 
					        - anup
 | 
				
			||||||
 | 
					        - customscripts
 | 
				
			||||||
 | 
					        - mpd_discord_richpresence
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2.3.4
 | 
				
			||||||
 | 
					      - uses: cachix/install-nix-action@v13
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210429_d15a196/install
 | 
				
			||||||
 | 
					          install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
 | 
				
			||||||
 | 
					          extra_nix_config: |
 | 
				
			||||||
 | 
					            experimental-features = nix-command flakes
 | 
				
			||||||
 | 
					      - uses: cachix/cachix-action@v10
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: natto1784
 | 
				
			||||||
 | 
					          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
 | 
				
			||||||
 | 
					      - run: nix build -L .#${{ matrix.pkgs }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  nixos:
 | 
				
			||||||
 | 
					    name: build nixos configurations
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        hosts:
 | 
				
			||||||
 | 
					        - Satori
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2.3.4
 | 
				
			||||||
 | 
					      - uses: cachix/install-nix-action@v13
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210429_d15a196/install
 | 
				
			||||||
 | 
					          install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
 | 
				
			||||||
 | 
					          extra_nix_config: |
 | 
				
			||||||
 | 
					            experimental-features = nix-command flakes
 | 
				
			||||||
 | 
					      - uses: cachix/cachix-action@v10
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: natto1784
 | 
				
			||||||
 | 
					          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
 | 
				
			||||||
 | 
					      - run: nix build -L .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel
 | 
				
			||||||
		Reference in New Issue
	
	Block a user