-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add DLang workflow #74
Conversation
|
@ErnyTech I justed checked the times. Using the container functionality in github actions seems to be rather slow ~44 seconds just for setting up the container. Also on the second try it doesn't get faster. We could leave it in this pull request but in the long run we should find something more performant. |
|
Could you change the workflow to this one? name: DLang
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: mihails-strasuns/setup-dlang@v0
- name: Build
run: dub build
- name: Run tests
run: dub test |
|
Yes absolutely, I will do it by tomorrow |
D is a general-purpose programming language, for more information: dlang.org This patch adds a minimal workflow that allows you to compile D projects that use DUB (the D package registry). I used the D Compiler Installation (https://github.com/marketplace/actions/d-compiler-installation) for setup the compiler for D. The logo used (dlang.svg) was taken from here https://github.com/dlang/dlang.org/blob/master/images/dlogo_2015.svg and is available under the BSL-1.0 license (https://github.com/dlang/dlang.org/blob/master/LICENSE.txt) Signed-off-by: Ernesto Castellotti <erny.castell@gmail.com>
|
@andre2007 done! |
|
@ErnyTech Fantastic, thanks a lot |
|
Hi @mscoutermarsh, Hi @jeremyepling Kind regards |
|
👋 Sorry everyone for the delay on this. At this point we are working on adding some guidelines for this repository in this PR #156. One thing I note is that this uses an Action outside of the Your next question then is probably "how can we get dlang added to the So sorry, there might be some work to figure out what to do with this workflow. Thank you 🙇 for your contribution and we'll try and get there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some wording requirements and documentation fixes. Unfortunately this is still blocker on the fate of the Github action being used.
| @@ -0,0 +1,16 @@ | |||
| name: DLang | |||
|
|
|||
| on: [push] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| on: [push] | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] |
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like other actions are doing this too. However nothing in this action prevents it to be run on all three platforms at the moment.
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - uses: actions/checkout@v1 | |
| - uses: actions/checkout@v2 |
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: mihails-strasuns/setup-dlang@v0.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - uses: mihails-strasuns/setup-dlang@v0.2.0 | |
| - uses: mihails-strasuns/setup-dlang@v0.5.0 |
| - name: Build | ||
| run: dub build | ||
| - name: Run tests | ||
| run: dub test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - name: Build | |
| run: dub build | |
| - name: Run tests | |
| run: dub test | |
| - name: Build & Test | |
| run: | | |
| # Build the project, with its main file included, without unittests | |
| dub build --compiler=$DC | |
| # Build and run tests, as defined by `unittest` configuration | |
| # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included | |
| # See https://dub.pm/package-format-json.html#configurations | |
| dub test --compiler=$DC |
We might also want to publish artifacts, but that's a bit more involved.
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "name": "D Programming Language", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "name": "D Programming Language", | |
| "name": "D", |
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "name": "D Programming Language", | |||
| "description": "Build, run and test a D Programming Language project with Dub.", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "description": "Build, run and test a D Programming Language project with Dub.", | |
| "description": "Build, run and test a D project with Dub.", | |
| "name": "D Programming Language", | ||
| "description": "Build, run and test a D Programming Language project with Dub.", | ||
| "iconName": "dlang", | ||
| "categories": ["D Programming Language"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "categories": ["D Programming Language"] | |
| "categories": [ "D" ] |
I looked up other languages and none is using "Programming Language" or "lang" suffix
|
@andymckay : Is there anything our community can do to help us make progress on this ? I've personally been using the action referenced here for many months to great success. I understand those are difficult times and you are probably extremely busy, so we'd really like to make this as simple as possible. Looking at other actions in this repository, there are plenty of places where external actions, images, or scripts are used:
I also listed scripts here, because It would be greatly appreciated if, given the new, official location of the action, you could agree to move forward on this. In which case, I can raise a new PR with the review I left on April 16th fixed, unless @ErnyTech gets to it first. |
|
After reviewing the contributions guidelines, it turns out this issue has been addressed, and third-party official actions are accepted as long as they satisfy certain criteria (have a disclaimer and use the hash). So I submitted #546, which also contain my feedback here (and is up to the new standards). |
Add DLang workflow
D is a general-purpose programming language,
for more information: dlang.org
This patch adds a minimal workflow that allows
you to compile D projects that use DUB (the D package registry).
I used the D Compiler Installation
(https://github.com/marketplace/actions/d-compiler-installation) for setup the compiler for D.
The logo used (dlang.svg) was taken from here
https://github.com/dlang/dlang.org/blob/master/images/dlogo_2015.svg
and is available under the BSL-1.0 license (https://github.com/dlang/dlang.org/blob/master/LICENSE.txt)