Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
for manifest in `find . -maxdepth 3 ! -path '*/day*' -name Cargo.toml`
do
echo check clippy for $manifest
cargo clippy --manifest-path $manifest -- --no-deps -D clippy::all -A clippy::pedantic -A clippy::nursery
cargo clippy --manifest-path $manifest -- --no-deps -D clippy::all -D clippy::pedantic -F clippy::nursery
done

# Check non-regression tests
Expand Down
19 changes: 12 additions & 7 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ set shell := ["bash", "-uc"]

alias r := run

# export RUSTFLAGS := "-C target-cpu=native"

run:
./scripts/runall.py --working-dir {{invocation_directory()}} -lrust --verified

# make

clean:
git clean -fd

make-debug:
cargo build --manifest-path aoc/Cargo.toml --quiet
@for year in 20* ; do echo "cargo build $year" ; cargo build --manifest-path $year/Cargo.toml --quiet ; done
@for path in crates/*/Cargo.toml ; do cargo build --manifest-path $path --quiet ; done
cargo build --manifest-path ./Cargo.toml --quiet

make:
cargo build --manifest-path aoc/Cargo.toml --release --quiet
@for year in 20* ; do echo "cargo build $year" ; cargo build --manifest-path $year/Cargo.toml --release --quiet ; done
@for path in crates/*/Cargo.toml ; do cargo build --manifest-path $path --quiet --release ; done
cargo build --manifest-path ./Cargo.toml --quiet --release

# exec

timings *ARGS:
./scripts/timings.py {{ ARGS }}
Expand All @@ -27,6 +29,8 @@ run-all *ARGS:
tmux kill-window -t aoc:0
tmux list-windows -t aoc

# GitHub

gh-fmt:
#!/usr/bin/env bash
for manifest in `find . -maxdepth 3 ! -path '*/day*' -name Cargo.toml`
Expand All @@ -40,7 +44,7 @@ gh-clippy:
for manifest in `find . -maxdepth 3 ! -path '*/day*' -name Cargo.toml`
do
echo check clippy for $manifest
cargo clippy --manifest-path $manifest -- --no-deps -D clippy::all -A clippy::pedantic -A clippy::nursery
cargo clippy --manifest-path $manifest -- --no-deps -D clippy::all -D clippy::pedantic -F clippy::nursery
done

gh-test:
Expand All @@ -53,6 +57,7 @@ gh-test:

gh: gh-fmt gh-clippy gh-test

# Docker stuff

debian:
docker build -f scripts/Dockerfile -t aoc scripts/
Expand Down
5 changes: 0 additions & 5 deletions 2015/Cargo.toml

This file was deleted.

36 changes: 0 additions & 36 deletions 2015/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day1/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day10/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day11/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions 2015/day12/Cargo.toml

This file was deleted.

14 changes: 0 additions & 14 deletions 2015/day13/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day14/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day15/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions 2015/day16/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions 2015/day17/Cargo.toml

This file was deleted.

16 changes: 0 additions & 16 deletions 2015/day18/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day19/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day2/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day20/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day21/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions 2015/day22/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day23/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day24/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day25/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day3/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day4/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions 2015/day5/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions 2015/day6/Cargo.toml

This file was deleted.

Loading
Loading