Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
September 06, 2019 Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Hi, Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script! This configuration will install a "dub build" pull request voter: https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml Kind regards Andre |
September 07, 2019 Re: Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | On 2019-09-07 00:02, Andre Pany wrote: > Hi, > > Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script! > > This configuration will install a "dub build" pull request voter: > > https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml Oh, cool. I didn't know about GitHub actions. Of course, there's no D template among the other languages [1] :( [1] https://github.com/actions/starter-workflows/tree/master/ci -- /Jacob Carlborg |
September 07, 2019 Re: Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Saturday, 7 September 2019 at 07:56:28 UTC, Jacob Carlborg wrote: > On 2019-09-07 00:02, Andre Pany wrote: >> Hi, >> >> Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script! >> >> This configuration will install a "dub build" pull request voter: >> >> https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml > > Oh, cool. I didn't know about GitHub actions. Of course, there's no D template among the other languages [1] :( > > [1] https://github.com/actions/starter-workflows/tree/master/ci I sent a PR a few days ago https://github.com/actions/starter-workflows/pull/74 |
September 07, 2019 Re: Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ernesto Castellotti | On Saturday, 7 September 2019 at 09:20:23 UTC, Ernesto Castellotti wrote:
> On Saturday, 7 September 2019 at 07:56:28 UTC, Jacob Carlborg wrote:
>> On 2019-09-07 00:02, Andre Pany wrote:
>>> Hi,
>>>
>>> Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script!
>>>
>>> This configuration will install a "dub build" pull request voter:
>>>
>>> https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml
>>
>> Oh, cool. I didn't know about GitHub actions. Of course, there's no D template among the other languages [1] :(
>>
>> [1] https://github.com/actions/starter-workflows/tree/master/ci
>
> I sent a PR a few days ago
> https://github.com/actions/starter-workflows/pull/74
Fantastic, thanks a lot.
Kind regards
Andre
|
September 07, 2019 Re: Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | On Friday, 6 September 2019 at 22:02:06 UTC, Andre Pany wrote: > Hi, > > Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script! > > This configuration will install a "dub build" pull request voter: > > https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml > > Kind regards > Andre Here's my take on it: https://github.com/CodeMyst/ghactions-test/blob/master/.github/workflows/blank.yml It doesn't use the install.sh script, this way you don't have to run the source command for every step. It just downloads the official deb package and installs it (since GitHub VMs have Ubuntu installed). |
September 08, 2019 Re: Build your dub packages with Github Actions | ||||
---|---|---|---|---|
| ||||
Posted in reply to CodeMyst | On Saturday, 7 September 2019 at 22:34:03 UTC, CodeMyst wrote:
> On Friday, 6 September 2019 at 22:02:06 UTC, Andre Pany wrote:
>> Hi,
>>
>> Just a small info, building your D application using Github Actions just works out of the box thanks to the install.sh script!
>>
>> This configuration will install a "dub build" pull request voter:
>>
>> https://github.com/andre2007/coding-puzzles/blob/master/.github/workflows/blank.yml
>>
>> Kind regards
>> Andre
>
> Here's my take on it: https://github.com/CodeMyst/ghactions-test/blob/master/.github/workflows/blank.yml
>
> It doesn't use the install.sh script, this way you don't have to run the source command for every step. It just downloads the official deb package and installs it (since GitHub VMs have Ubuntu installed).
Thanks, I also had a look at the "container functionality". Unfortunately using containers or installing the dmd.deb package is rather slow compared to the install.sh script.
The complete runtime of the job is about 17 seconds by using install.sh and about 60 seconds for using the container / installing the dmd.deb package.
Kind regards
André
|
Copyright © 1999-2021 by the D Language Foundation