Re: Build your dub packages with Github Actions

2019-09-08 Thread Andre Pany via Digitalmars-d-announce

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é


Re: Build your dub packages with Github Actions

2019-09-07 Thread CodeMyst via Digitalmars-d-announce

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).


Re: Build your dub packages with Github Actions

2019-09-07 Thread Andre Pany via Digitalmars-d-announce
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


Re: Build your dub packages with Github Actions

2019-09-07 Thread Ernesto Castellotti via Digitalmars-d-announce
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



Re: Build your dub packages with Github Actions

2019-09-07 Thread Jacob Carlborg via Digitalmars-d-announce

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