forked from dlang-community/setup-dlang
-
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.
Set the DMD environment variable for all compilers
This action sets up DC to point to the compiler. It is not much more work to also set DMD to point to the dmd wrapper of the compiler. dmd is its own wrapper, ldmd2 comes by default with ldc2. The only one left out is gdc. The action allowed installing gdc, either alone or with gdmd and setting DC to point to one of them. This required the user to specify which what they wanted to set DC to. This is pointlessly complex as gdmd is just a script file that can be easily downloaded. The previous decision to do this separately was because of the installation method of the gdmd script, it defaulting to installing it through `apt`, which would likely lead to many more useless packages being installed. This is too much work for just a script file so it will now always be installed by fetching it from the upstream repo. See dlang-community#77 (comment) for a discussion around this topic. This has as consequences that the `gdmd` and `gdmd-<version>` inputs to `dc` become invalid and that the `gdmd_sha` inputs becomes mandatory. To accommodate for the second issue the action now picks a default value for `gdmd_sha`. Signed-off-by: Andrei Horodniceanu <[email protected]>
- Loading branch information
Showing
12 changed files
with
246 additions
and
134 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.