-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10522 from gridbugs/merge-main-into-toolchains1
Merge main into toolchains
- Loading branch information
Showing
142 changed files
with
2,623 additions
and
1,057 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
binary: | ||
name: Create | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-13 | ||
name: mac-intel | ||
installable: .# | ||
- os: macos-14 | ||
name: mac-arm | ||
installable: .# | ||
- os: ubuntu-22.04 | ||
name: linux-intel | ||
installable: .# | ||
- os: ubuntu-22.04 | ||
name: linux-intel-static | ||
installable: .#dune-static | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v22 | ||
- run: nix build ${{ installable }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: result/bin/dune | ||
name: dune-${{ matrix.name }} | ||
combine: | ||
runs-on: ubuntu-latest | ||
needs: binary | ||
steps: | ||
- uses: actions/upload-artifact/merge@v4 | ||
with: | ||
separate-directories: true |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
open Import | ||
|
||
let term = | ||
let+ builder = Common.Builder.term in | ||
let common, config = Common.init builder in | ||
Scheduler.go ~common ~config | ||
@@ fun () -> | ||
let open Fiber.O in | ||
let* setup = Import.Main.setup () in | ||
let+ setup = Memo.run setup in | ||
let ctxts = | ||
List.map | ||
~f:(fun (name, _) -> Context_name.to_string name) | ||
(Context_name.Map.to_list setup.scontexts) | ||
in | ||
List.iter ctxts ~f:print_endline | ||
;; | ||
|
||
let command = | ||
let doc = "List the build contexts available in the workspace." in | ||
let info = Cmd.info ~doc "contexts" in | ||
Cmd.v info term | ||
;; |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
open Import | ||
|
||
(** Dune command to print out the available build contexts.*) | ||
val command : unit Cmd.t |
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
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
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
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
Oops, something went wrong.