-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sanity workflow in debug mode. * Overflow occurs while calculating the Collatz sequence in a solution. * By some weird coincidence, this did not affect the result. * Running in debug mode will terminate the program upon overflow. * Switched back to release mode, but enabled overflow checks. * Improved logic to avoid overflow on 32-bit systems. * Formatted. * `Dockerfile`: more precise path.
- Loading branch information
Showing
3 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ harness = false | |
|
||
[profile.release] | ||
incremental = true | ||
overflow-checks = true | ||
strip = "debuginfo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM --platform=linux/i386 alpine:3.19 | ||
RUN apk add cargo | ||
WORKDIR /project-euler | ||
WORKDIR /github.com/tfpf/project-euler | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters