From 3543381ad00a2f167a8b4120e4cfc72cea604627 Mon Sep 17 00:00:00 2001 From: Smaug123 Date: Thu, 7 Dec 2023 09:28:14 +0000 Subject: [PATCH] Fix --- .woodpecker/.build.yml | 2 +- AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Program.fs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index e686fb7..473a9ab 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -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/Test/samples" + - '$(find . -type f -name AdventOfCode2023.FSharp | grep Release | grep publish) "$(pwd)/AdventOfCode2023.FSharp/Test/samples"' when: - event: "push" diff --git a/AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Program.fs b/AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Program.fs index da2fe6e..254e137 100644 --- a/AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Program.fs +++ b/AdventOfCode2023.FSharp/AdventOfCode2023.FSharp/Program.fs @@ -27,13 +27,13 @@ module Program = do sw.Restart () - let input = Path.Combine (dir.FullName, "day1.txt") |> File.ReadAllText - printfn "%s" input + let input = Path.Combine (dir.FullName, "day1part1.txt") |> File.ReadAllText let part1 = Day1.part1 input sw.Stop () Console.WriteLine (part1.ToString ()) Console.Error.WriteLine ((1_000.0 * float sw.ElapsedTicks / float Stopwatch.Frequency).ToString () + "ms") sw.Restart () + let input = Path.Combine (dir.FullName, "day1.txt") |> File.ReadAllText let part2 = Day1.part2 input sw.Stop () Console.WriteLine (part2.ToString ())