Skip to content

downflux/go-game

Repository files navigation

game

Implementation of DownFlux, a collaborative RTS.

Server CI

Setup

Cloning Repo

  1. Set up git

    git config --global push.default current
  2. Copy the SSH keys into ~/.ssh and set permission to 600 for id_rsa and 644 for id_rsa.pub.

  3. Add to SSH keychain

    ssh-add
  4. Test SSH access to GitHub

    ssh -T git@github.com
  5. Clone

    git clone git@github.com:downflux/game.git
  6. Install LFS for the repo

    git lfs install

Installing Bazel

Install Bazel via official docs.

Current verified Bazel version is 3.7.2.

bazel test -c opt \
  --features race ... \
  --nocache_test_results \
  --runs_per_test=10

CPU Profiler

sudo apt install graphviz gv
bazel run -c opt \
  //server/grpc:main -- \
  --cpuprofile=${F}
go tool pprof -http=localhost:8888 ${F}