Import aoc2026 history into 2026/
test / AoC 2024 (push) Failing after 22s
git-subtree-dir: 2026 git-subtree-mainline:70a284ca0fgit-subtree-split:144d63eb66
No files matched your search
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
@@ -1,62 +0,0 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: AoC 2024
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: setup toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache: true
|
||||
components: clippy, rustfmt
|
||||
toolchain: stable
|
||||
rustflags: ""
|
||||
|
||||
- name: install cargo-aoc
|
||||
run: cargo install --locked cargo-aoc
|
||||
|
||||
- name: get date
|
||||
id: date
|
||||
run: |
|
||||
echo date=$(date +%Y%m%d) > $GITHUB_OUTPUT
|
||||
|
||||
- name: Get cached inputs
|
||||
id: inputs
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: input
|
||||
key: ${{ steps.date.outputs.date }}
|
||||
|
||||
- name: Get inputs from source
|
||||
if: steps.inputs.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cargo aoc credentials ${{ secrets.AOC_SESSION }}
|
||||
for i in $(seq 1 25); do
|
||||
dayfmt=$(printf %02d $i)
|
||||
if [ ${{ steps.date.outputs.date }} -ge 202412${dayfmt} ]; then
|
||||
cargo aoc input --year 2024 --day $i
|
||||
fi
|
||||
done
|
||||
|
||||
- name: cargo test
|
||||
run: cargo test --lib
|
||||
|
||||
- name: rustfmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: clippy
|
||||
run: cargo clippy --lib --tests -- -D warnings
|
||||
if: always()
|
||||
|
||||
- name: full run
|
||||
run: cargo run --release
|
||||
if: always()
|
||||
@@ -1,7 +0,0 @@
|
||||
**/target
|
||||
input
|
||||
flamegraph.svg
|
||||
perf.data*
|
||||
guesses
|
||||
.aoc_tiles/*
|
||||
!.aoc_tiles/tiles/
|
||||
@@ -1,30 +0,0 @@
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: rust-linting
|
||||
name: Rust linting
|
||||
entry: cargo fmt --all --
|
||||
pass_filenames: true
|
||||
types: [file, rust]
|
||||
language: system
|
||||
- id: rust-clippy
|
||||
name: Rust clippy
|
||||
entry: cargo clippy --lib --all-features --tests -- -D warnings
|
||||
pass_filenames: false
|
||||
types: [file, rust]
|
||||
language: system
|
||||
- repo: https://github.com/LiquidFun/aoc_tiles
|
||||
rev: 0.6.2
|
||||
hooks:
|
||||
- id: aoc-tiles
|
||||
# Optionally use these arguments. Auto add tiles to git adds the tiles to git,
|
||||
# possibly amends your commit by creating the tile images and updating the README.
|
||||
# Language sorting shows the preference of the order of the languages to use.
|
||||
# Exclude paterns are globs which can be used to exclude files when creating
|
||||
# the tiles. See the customization section in the README for more flags.
|
||||
# Simply remove the comments (#) below for args and the flags you want.
|
||||
args:
|
||||
- --auto-add-tiles-to-git=amend
|
||||
- --overwrite-year=2024
|
||||
# - --language-sorting=jl,kt,py,rs
|
||||
# - --exclude-patterns=2021/*/*.apl,2021/*/*.py,2021/*/*.cpp
|
||||
@@ -1 +0,0 @@
|
||||
max_width = 120
|
||||
@@ -1,80 +0,0 @@
|
||||
<!-- AOC TILES BEGIN -->
|
||||
<h1 align="center">
|
||||
2024 - 48 ⭐ - Rust
|
||||
</h1>
|
||||
<a href="src/day1.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/01.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day2.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/02.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day3.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/03.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day4.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/04.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day5.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/05.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day6.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/06.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day7.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/07.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day8.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/08.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day9.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/09.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day10.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/10.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day11.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/11.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day12.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/12.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day13.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/13.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day14.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/14.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day15.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/15.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day16.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/16.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day17.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/17.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day18.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/18.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day19.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/19.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day20.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/20.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day21.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/21.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day22.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/22.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day23.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/23.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day24.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/24.png" width="161px">
|
||||
</a>
|
||||
<a href="src/day25.rs">
|
||||
<img src=".aoc_tiles/tiles/2024/25.png" width="161px">
|
||||
</a>
|
||||
<!-- AOC TILES END -->
|
||||