-
Notifications
You must be signed in to change notification settings - Fork 10
Have multiple configs instead of editing source code #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Leonidas-from-XIV
merged 12 commits into
ocaml-dune:main
from
Leonidas-from-XIV:toml-config
Mar 11, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
08468f1
Add toml dependency
Leonidas-from-XIV be63199
Implement TOML parsing
Leonidas-from-XIV a819062
Add test configuration
Leonidas-from-XIV 14481ae
Use test config if it is a test run
Leonidas-from-XIV 9fea36b
Update documentation to match TOML config
Leonidas-from-XIV 701bc5e
Add configuration to Docker container
Leonidas-from-XIV ef99b87
Update documentation to align more with reality
Leonidas-from-XIV 6197560
Fix markup
Leonidas-from-XIV 7c24795
Reintroduce staging instead of test variable
Leonidas-from-XIV c2822a3
Add instructions how to deploy the right config to staging branch
Leonidas-from-XIV f226a00
Remove TOML
Leonidas-from-XIV 3740471
Rename workflow labels
Leonidas-from-XIV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,12 +1,43 @@ | ||
| module Server = struct | ||
| let bucket_dir = "/dune/" | ||
| let rclone_bucket_ref = Format.sprintf "dune-binary-distribution:%s" bucket_dir | ||
| let url = "https://get.dune.build/" | ||
| module type Configuration = sig | ||
| module Server : sig | ||
| val rclone_bucket_ref : string | ||
| val url : string | ||
| end | ||
|
|
||
| module Path : sig | ||
| val artifacts_dir : string | ||
| val metadata : string | ||
| val rclone : string | ||
| val install : string | ||
| end | ||
| end | ||
|
|
||
| module Path = struct | ||
| let artifacts_dir = "./artifacts" | ||
| let metadata = "./metadata.json" | ||
| let rclone = "./rclone.conf" | ||
| let install = "./static/install" | ||
| module Production : Configuration = struct | ||
| module Server = struct | ||
| let bucket_dir = "/dune/" | ||
| let rclone_bucket_ref = Printf.sprintf "dune-binary-distribution:%s" bucket_dir | ||
| let url = "https://get.dune.build/" | ||
| end | ||
|
|
||
| module Path = struct | ||
| let artifacts_dir = "./artifacts" | ||
| let metadata = "./metadata.json" | ||
| let rclone = "./rclone.conf" | ||
| let install = "./static/install" | ||
| end | ||
| end | ||
|
|
||
| module Testing : Configuration = struct | ||
| module Server = struct | ||
| let bucket_dir = "/dune/test" | ||
| let rclone_bucket_ref = Printf.sprintf "dune-binary-distribution:%s" bucket_dir | ||
| let url = "https://get.dune.build/test" | ||
| end | ||
|
|
||
| module Path = struct | ||
| let artifacts_dir = "./artifacts" | ||
| let metadata = "./metadata.json" | ||
| let rclone = "./rclone.conf" | ||
| let install = "./static/install" | ||
| end | ||
| end |
This file contains hidden or 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,11 +1,16 @@ | ||
| module Server : sig | ||
| val rclone_bucket_ref : string | ||
| val url : string | ||
| end | ||
| module type Configuration = sig | ||
| module Server : sig | ||
| val rclone_bucket_ref : string | ||
| val url : string | ||
| end | ||
|
|
||
| module Path : sig | ||
| val artifacts_dir : string | ||
| val metadata : string | ||
| val rclone : string | ||
| val install : string | ||
| module Path : sig | ||
| val artifacts_dir : string | ||
| val metadata : string | ||
| val rclone : string | ||
| val install : string | ||
| end | ||
| end | ||
|
|
||
| module Production : Configuration | ||
| module Testing : Configuration |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.