Day 7 #6

Merged
patrick merged 8 commits from day7 into main 2023-12-07 09:32:22 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 5094d8dd97 - Show all commits

View File

@@ -13,7 +13,7 @@ steps:
- nix develop --command dotnet fantomas --check .
# TODO: if https://github.com/dotnet/sdk/issues/37295 ever gets fixed, remove the PublishAot=false
- "nix develop --command dotnet publish AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/AdventOfCode2023.FSharp.fsproj --configuration Release -p:PublishAot=false -p:SelfContained=true"
- nix develop --command sh -c "$(find . -type f -name AdventOfCode2023.FSharp | grep Release | grep publish) AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Test/samples"
- nix develop --command sh -c "$(find . -type f -name AdventOfCode2023.FSharp | grep Release | grep publish) AdventOfCode2023.FSharp/Test/samples"
when:
- event: "push"

View File

@@ -28,6 +28,7 @@ module Program =
do
sw.Restart ()
let input = Path.Combine (dir.FullName, "day1.txt") |> File.ReadAllText
printfn "%s" input
let part1 = Day1.part1 input
sw.Stop ()
Console.WriteLine (part1.ToString ())