- Clone template
- Replace all
xxxx
with current year (do not accidentally replace content insideactual_inputs
folder!) - Update the
src/bin/empty/main.rs
include_str!()
macro to use the correct year. - Add
INPUT_REPO_TOKEN
secret with access toactual_inputs
folder so that CI can access the inputs- Just "Contents - Read-only" access for the input repo is sufficient
Start a new day:
cd src/bin/
cp -r empty ./dayXX
Watch changes with cargo-watch
:
cargo watch -x 'test --bin dayXX'
Test everything, even for cases that are ignored:
cargo test -- --include-ignored