mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	Merge pull request #164 from NotAShelf/feature/ci
CI: use DetSys Nix Installer action
This commit is contained in:
		
				commit
				
					
						6a148978a8
					
				
			
		
					 4 changed files with 25 additions and 32 deletions
				
			
		
							
								
								
									
										10
									
								
								.github/workflows/cachix.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/cachix.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -34,13 +34,9 @@ jobs: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|         name: Checkout |         name: Checkout | ||||||
| 
 | 
 | ||||||
|       - uses: cachix/install-nix-action@v20 |       - name: Install Nix | ||||||
|         with: |         uses: DeterminateSystems/nix-installer-action@main | ||||||
|           extra_nix_config: | |       - uses: DeterminateSystems/magic-nix-cache-action@main | ||||||
|             access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} |  | ||||||
|             auto-optimise-store = true |  | ||||||
|             experimental-features = nix-command flakes |  | ||||||
|           nix_path: nixpkgs=channel:nixos-unstable |  | ||||||
| 
 | 
 | ||||||
|       - uses: cachix/cachix-action@v12 |       - uses: cachix/cachix-action@v12 | ||||||
|         with: |         with: | ||||||
|  |  | ||||||
							
								
								
									
										15
									
								
								.github/workflows/check-docs.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/check-docs.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -26,13 +26,9 @@ jobs: | ||||||
|           remove-dotnet: true |           remove-dotnet: true | ||||||
|           remove-haskell: true |           remove-haskell: true | ||||||
| 
 | 
 | ||||||
|       - uses: cachix/install-nix-action@v20 |       - name: Install Nix | ||||||
|         with: |         uses: DeterminateSystems/nix-installer-action@main | ||||||
|           extra_nix_config: | |       - uses: DeterminateSystems/magic-nix-cache-action@main | ||||||
|             access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} |  | ||||||
|             auto-optimise-store = true |  | ||||||
|             experimental-features = nix-command flakes |  | ||||||
|           nix_path: nixpkgs=channel:nixos-unstable |  | ||||||
| 
 | 
 | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|         name: Checkout |         name: Checkout | ||||||
|  | @ -40,10 +36,7 @@ jobs: | ||||||
|       - name: Set default git branch (to reduce log spam) |       - name: Set default git branch (to reduce log spam) | ||||||
|         run: git config --global init.defaultBranch main |         run: git config --global init.defaultBranch main | ||||||
| 
 | 
 | ||||||
|       - name: Validate Flake |       - name: Build documentation packages | ||||||
|         run: nix flake check |  | ||||||
| 
 |  | ||||||
|       - name: Build neovim-flake with default settings |  | ||||||
|         run: nix build .#${{ matrix.package }} --print-build-logs |         run: nix build .#${{ matrix.package }} --print-build-logs | ||||||
| 
 | 
 | ||||||
|       - name: Upload doc artifacts |       - name: Upload doc artifacts | ||||||
|  |  | ||||||
							
								
								
									
										29
									
								
								.github/workflows/check.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/check.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -14,22 +14,25 @@ jobs: | ||||||
|     name: Validate Flake |     name: Validate Flake | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - name: Checkout | ||||||
|       - uses: cachix/install-nix-action@v20 |         uses: actions/checkout@v4 | ||||||
|         with: | 
 | ||||||
|           extra_nix_config: | |       - name: Install Nix | ||||||
|             access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} |         uses: DeterminateSystems/nix-installer-action@main | ||||||
|       - run: nix flake check |       - uses: DeterminateSystems/magic-nix-cache-action@main | ||||||
|  | 
 | ||||||
|  |       - name: Check Flake | ||||||
|  |         run: nix flake check | ||||||
| 
 | 
 | ||||||
|   format-with-alejandra: |   format-with-alejandra: | ||||||
|     name: Formatting via Alejandra |     name: Formatting via Alejandra | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - name: Checkout | ||||||
|       - uses: cachix/install-nix-action@v20 |         uses: actions/checkout@v4 | ||||||
|         with: | 
 | ||||||
|           install_url: https://nixos.org/nix/install |       - name: Install Nix | ||||||
|           extra_nix_config: | |         uses: DeterminateSystems/nix-installer-action@main | ||||||
|             auto-optimise-store = true |       - uses: DeterminateSystems/magic-nix-cache-action@main | ||||||
|             experimental-features = nix-command flakes | 
 | ||||||
|       - run: nix run nixpkgs#alejandra -- -c . |       - run: nix run nixpkgs#alejandra -- -c . | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								.github/workflows/manual.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/manual.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -27,7 +27,8 @@ jobs: | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
| 
 | 
 | ||||||
|       - name: Install Nix |       - name: Install Nix | ||||||
|         uses: cachix/install-nix-action@v18 |         uses: DeterminateSystems/nix-installer-action@main | ||||||
|  |       - uses: DeterminateSystems/magic-nix-cache-action@main | ||||||
| 
 | 
 | ||||||
|       - name: Build |       - name: Build | ||||||
|         run: | |         run: | | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub