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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/aoc-2024.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Advent of Code 2024

on:
push:
branches:
- main
paths:
- 2024/**
- 2024.Tests/**

pull_request:
paths:
- 2024/**
- 2024.Tests/**

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'

- name: Restore dependencies
run: dotnet restore Advent-of-Code-2024.sln

- name: Build project
run: dotnet build Advent-of-Code-2024.sln --no-restore

- name: Run tests
run: dotnet test 2024.Tests/2024.Tests.csproj --no-build --verbosity normal
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
.*
!.gitignore

# Include GitHub configurations
!.github

# User-specific files
*.suo
*.user
Expand Down
17 changes: 14 additions & 3 deletions 2024/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Advent of Code 2024
Welcome to my repository, which contains my attempts at solving the
puzzles of [Advent of Code 2024](https://adventofcode.com/2024/).
This year I will try to better document my process and things that
I have learned. Good luck to everyone participating this year!
puzzles of [Advent of Code 2024]. This year I will try to better document
my process and things that I have learned. Good luck to everyone
participating this year!

[Advent of Code 2024]: https://adventofcode.com/2024/

## New things I've learned
Anything that I learn, and anything that I forgot and now discover,
Expand Down Expand Up @@ -36,3 +38,12 @@ publication directory.
</Target>
```

### LINQ Zip method

For [Day 1] I needed a way to process two sets of data simultaneously.
Apparently that is exactly what [Zip] does!

[Day 1]: https://adventofcode.com/2024/day/1
[Zip]: https://learn.microsoft.com/en-us/dotnet/csharp/linq/standard-query-operators/projection-operations#zip