Overwrite runner arch for magic Nix cache
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				CI / Check Nix flake (push) Successful in 1m22s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	CI / Check Nix flake (push) Successful in 1m22s
				
			This commit is contained in:
		@@ -8,14 +8,30 @@ jobs:
 | 
				
			|||||||
  check:
 | 
					  check:
 | 
				
			||||||
    name: Check Nix flake
 | 
					    name: Check Nix flake
 | 
				
			||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      ACTIONS_STEP_DEBUG: true
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: cachix/install-nix-action@v23
 | 
					      - uses: cachix/install-nix-action@v23
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          # Gitea will supply a token in GITHUB_TOKEN, which this action will
 | 
				
			||||||
 | 
					          # try to pass to Nix when downloading from GitHub
 | 
				
			||||||
 | 
					          github_access_token: ${{ secrets.GH_PULL_TOKEN }}
 | 
				
			||||||
 | 
					          extra_nix_config: |
 | 
				
			||||||
 | 
					            # Make sure we're using sandbox
 | 
				
			||||||
 | 
					            sandbox-fallback = false
 | 
				
			||||||
      - uses: DeterminateSystems/magic-nix-cache-action@main
 | 
					      - uses: DeterminateSystems/magic-nix-cache-action@main
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          # Arch is amd64 in Gitea actions, this forms the download path for the cache
 | 
				
			||||||
 | 
					          RUNNER_ARCH: X64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Write agenix secrets key to file
 | 
					      - name: Write agenix secrets key to file
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          KEY: ${{ secrets.AGENIX_SECRETS_KEY }}
 | 
					          KEY: ${{ secrets.AGENIX_SECRETS_KEY }}
 | 
				
			||||||
        run: printf "$KEY" > .keys/ci.key
 | 
					        run: printf "$KEY" > .keys/ci.key
 | 
				
			||||||
      - name: Check flake
 | 
					      - name: test
 | 
				
			||||||
        run: nix flake check
 | 
					        run: |
 | 
				
			||||||
 | 
					          nix build ".#monocraft'"
 | 
				
			||||||
 | 
					          nix copy --to 'http://127.0.0.1:37515/?compression=zstd¶llel-compression=true' ".#monocraft'"
 | 
				
			||||||
 | 
					      # - name: Check flake
 | 
				
			||||||
 | 
					      #   run: nix flake check
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user