forked from ghostchain/ghost-node
		
	recomendations for rustc compilation and cargo usage for automation script
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									b922bf6c20
								
							
						
					
					
						commit
						61056ed162
					
				@ -201,6 +201,15 @@ if [[ $HARD_RESET = true ]]; then
 | 
				
			|||||||
    # git switch main
 | 
					    # git switch main
 | 
				
			||||||
    # git pull origin main
 | 
					    # git pull origin main
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    # rustc version control, this works fine
 | 
				
			||||||
 | 
					    # cargo --version | cut -d'.' -f2, if higher then do
 | 
				
			||||||
 | 
					    # rustup default 1.83.0
 | 
				
			||||||
 | 
					    # rustup target add wasm32-unknown-unknown --toolchain 1.83.0-x86_64-unknown-linux-gnu
 | 
				
			||||||
 | 
					    # rustup component add rust-src --toolchain 1.83.0-x86_64-unknown-linux-gnu
 | 
				
			||||||
 | 
					    #
 | 
				
			||||||
 | 
					    # I think we need to do clean before recompilation
 | 
				
			||||||
 | 
					    # cargo clean
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cd $PROJECT_FOLDER
 | 
					    cd $PROJECT_FOLDER
 | 
				
			||||||
    echo "[+] starting build in 3 seconds..."
 | 
					    echo "[+] starting build in 3 seconds..."
 | 
				
			||||||
    sleep 3
 | 
					    sleep 3
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user