www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Build your dub packages with Github Actions

reply Andre Pany <andre s-e-a-p.de> writes:
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
Sep 06 2019
next sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Sep 07 2019
parent reply Ernesto Castellotti <erny.castell gmail.com> writes:
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
Sep 07 2019
parent Andre Pany <andre s-e-a-p.de> writes:
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
Sep 07 2019
prev sibling parent reply CodeMyst <codemyst pm.me> writes:
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).
Sep 07 2019
parent Andre Pany <andre s-e-a-p.de> writes:
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é
Sep 08 2019