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: Release D 2.088.0

2019-09-07 Thread David Gileadi via Digitalmars-d-announce

On 9/7/19 12:27 PM, Manu wrote:

I don't know how to iterate on the docs, since they only appear from
CI, and I have no idea how to create them myself :/


I don't know what the "correct" way is, but to build dlang.org locally 
on macOS, from the dlang.org dir I run:


DIFFABLE=1 make -f posix.mak html

To build phobos docs locally, from the phobos dir I run:

make -f posix.mak build-html

To build druntime locally, from the druntime dir I run:

make -f posix.mak doc

However this last one fails for me on macOS due to platform-specific 
compile errors:


src/core/stdcpp/typeinfo.d(147): Error: static assert:  "Missing 
std::type_info binding for this platform"


In any case you'll find all the generated local docs in your 
dlang.org/web dir.


Re: Release D 2.088.0

2019-09-07 Thread Manu via Digitalmars-d-announce
On Sat, Sep 7, 2019 at 9:05 AM jmh530 via Digitalmars-d-announce
 wrote:
>
> On Saturday, 7 September 2019 at 07:16:36 UTC, Manu wrote:
> > [snip]
> >
> > What's the story with string though; the second line (linking
> > back to the C++ reference) of the doco isn't there... O_o
>
> Hmm, I didn't notice that. It also is a problem for
> core.stdcpp.array. I'm looking at other uses of LINK2 in druntime
> and they are usually of the form $(LINK2 http:/xxx, some_text).
> Without digging in to the documentation generator, I think LINK2
> is meant to be used when you want to replace the link with some
> text. I don't see many cases of raw links being used (the source
> shows up as a raw link, but it's not done that way in the files),
> someone else may know better than I do.

The text before the link is gone too.
I don't know how to iterate on the docs, since they only appear from
CI, and I have no idea how to create them myself :/


Re: Release D 2.088.0

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

On Saturday, 7 September 2019 at 07:16:36 UTC, Manu wrote:

[snip]

What's the story with string though; the second line (linking 
back to the C++ reference) of the doco isn't there... O_o


Hmm, I didn't notice that. It also is a problem for 
core.stdcpp.array. I'm looking at other uses of LINK2 in druntime 
and they are usually of the form $(LINK2 http:/xxx, some_text). 
Without digging in to the documentation generator, I think LINK2 
is meant to be used when you want to replace the link with some 
text. I don't see many cases of raw links being used (the source 
shows up as a raw link, but it's not done that way in the files), 
someone else may know better than I do.


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


Re: Release D 2.088.0

2019-09-07 Thread Manu via Digitalmars-d-announce
On Fri, Sep 6, 2019 at 3:50 AM jmh530 via Digitalmars-d-announce
 wrote:
>
> On Thursday, 5 September 2019 at 20:55:15 UTC, Manu wrote:
> > [snip]
> >
> > Interesting... you can see in the code, there are doco comments
> > everywhere, but the docs are empty O_o
> > Also the second line of the description linking to the C++ docs
> > is
> > missing too... where did all the docs go?
> >
>
> The point I was trying to make wrt basic_string was that the top
> of it looks like
>
> /**
>   * D language counterpart to C++ std::basic_string.
>   *
>   * C++ reference: $(LINK2
> https://en.cppreference.com/w/cpp/string/basic_string)
>   */
> extern(C++, class)
> extern(C++, (StringNamespace))
> struct basic_string(T, Traits = char_traits!T, Alloc =
> allocator!T)
>
> whereas the top of vector looks like
>
> extern(C++, class) struct vector(T, Alloc = allocator!T)
>
> It has no top-level comment. With no top-level comment, all the
> other documentation won't show up.

I'll give it a good do-over.

What's the story with string though; the second line (linking back to
the C++ reference) of the doco isn't there... O_o