a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 30ced41aa60af6f50715fcbc8e659b7f7dc50c51 63 lines 1.5 kB view raw
1.PHONY: build run clean test docker-build docker-run help 2 3# Build the battleship arena server 4build: 5 @echo "Building battleship-arena..." 6 @go build -o bin/battleship-arena ./cmd/battleship-arena 7 8# Run the server 9run: build 10 @echo "Starting battleship-arena..." 11 @./bin/battleship-arena 12 13# Clean build artifacts 14clean: 15 @echo "Cleaning..." 16 @rm -rf bin/ 17 @rm -rf submissions/ .ssh/ *.db 18 19# Run tests 20test: 21 @echo "Running tests..." 22 @go test -v ./... 23 24# Generate SSH host key 25gen-key: 26 @echo "Generating SSH host key..." 27 @mkdir -p .ssh 28 @ssh-keygen -t ed25519 -f .ssh/battleship_arena -N "" 29 30# Format code 31fmt: 32 @echo "Formatting code..." 33 @go fmt ./... 34 35# Lint code 36lint: 37 @echo "Linting code..." 38 @golangci-lint run 39 40# Update dependencies 41deps: 42 @echo "Updating dependencies..." 43 @go mod tidy 44 @go mod download 45 46# Build for production (optimized) 47build-prod: 48 @echo "Building for production..." 49 @CGO_ENABLED=1 go build -ldflags="-s -w" -o bin/battleship-arena ./cmd/battleship-arena 50 51# Show help 52help: 53 @echo "Available targets:" 54 @echo " build - Build the server" 55 @echo " run - Build and run the server" 56 @echo " clean - Clean build artifacts" 57 @echo " test - Run tests" 58 @echo " gen-key - Generate SSH host key" 59 @echo " fmt - Format code" 60 @echo " lint - Lint code" 61 @echo " deps - Update dependencies" 62 @echo " build-prod - Build optimized production binary" 63 @echo " help - Show this help"