Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 16, 2023
0 parents commit d3ce187
Show file tree
Hide file tree
Showing 212 changed files with 13,013 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,33 @@
version: 2

jobs:
build:
docker:
- image: cimg/base:2021.11
steps:
- checkout
- run:
name: Install compilers
command: ./.circleci/run.sh install-deps
- run:
name: Build and test (dmd)
command: ./.circleci/run.sh build-dmd
- run:
name: Build and test (ldc)
command: ./.circleci/run.sh build-ldc
#- store_artifacts:
#path: ./artifacts

workflows:
version: 2
build_and_test:
jobs:
- build:
filters:
branches:
ignore:
- /appveyor-.*/
- /travis-.*/
- gh-pages
- /dustmite-.*/
- /github-.*/
105 changes: 105 additions & 0 deletions .circleci/run.sh
@@ -0,0 +1,105 @@
#!/bin/bash

set -uexo pipefail

#DMD_VERSION="2.098.0"
#LDC_VERSION="1.28.0"
CURL_USER_AGENT="CirleCI $(curl --version | head -n 1)"

update_repos() {
sudo apt-get update
}

install_deps() {
sudo apt-get install g++-multilib

# required for: "core.time.TimeException@std/datetime/timezone.d(2073): Directory /usr/share/zoneinfo/ does not exist."
#sudo apt-get install --reinstall tzdata gdb
}

download_install_script() {
for i in {0..4}; do
if curl -fsS -A "$CURL_USER_AGENT" --max-time 5 https://dlang.org/install.sh -O ||
curl -fsS -A "$CURL_USER_AGENT" --max-time 5 https://nightlies.dlang.org/install.sh -O ; then
break
elif [[ "$i" -ge 4 ]]; then
sleep $((1 << i))
else
echo 'Failed to download install script' 1>&2
exit 1
fi
done
}

install_and_activate_compiler() {
local compiler compiler_version_ext compiler_build

compiler=$1
[[ $# -gt 1 ]] && compiler_version_ext="-$2" || compiler_version_ext=""
compiler_build="${compiler}${compiler_version_ext}"

source "$(CURL_USER_AGENT=\"$CURL_USER_AGENT\" bash install.sh $compiler_build --activate)"
}

use_lu_master() {
if [[ ! -d lu ]]; then
git clone https://github.com/zorael/lu.git
dub add-local lu
fi
}

build() {
local compiler_switch arch_switch

compiler_switch="--compiler=$1"
arch_switch="--arch=$2"

shift 2 # shift away compiler and arch
# "$@" is now any extra parameters passed to build

dub clean

time dub test $compiler_switch $arch_switch "$@"
time dub build $compiler_switch $arch_switch "$@" --nodeps -b debug
time dub build $compiler_switch $arch_switch "$@" --nodeps -b plain
time dub build $compiler_switch $arch_switch "$@" --nodeps -b release
}

# execution start

case $1 in
install-deps)
update_repos
install_deps
download_install_script
;;

build-dmd)
install_and_activate_compiler dmd #"$DMD_VERSION"
dmd --version
dub --version

#use_lu_master

#time build dmd x86 # no 32-bit libs?
time build dmd x86_64
;;

build-ldc)
install_and_activate_compiler ldc #"$LDC_VERSION"
ldc2 --version
dub --version

#use_lu_master

#time build ldc2 x86 # no 32-bit libs?
time build ldc2 x86_64
;;

*)
echo "Unknown command: $1";
exit 1;
;;
esac

exit 0
35 changes: 35 additions & 0 deletions index.html
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>index (index)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>


<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>lu</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>

<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>index</h1><div class="breadcrumbs"></div><div><div class="documentation-comment synopsis"><div></div></div></div><div class="annotated-prototype"></div><h2 id="modules"><a class="header-anchor" href="#modules">Modules</a></h2><dl class="member-list native"><dt><a href="lu.html">lu</a><div class="simplified-prototype" style="max-width: 9ch;"><span class="builtin-type">module</span> <span class="name">lu</span></div></dt><dd><div><p><b>lu</b> is a general purpose library, doing a little bit of everything.</p></div></dd></dl><div></div></div>
<div id="page-nav">
</div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>
35 changes: 35 additions & 0 deletions lu.common.FileExistsException.filename.html
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>FileExistsException.filename (lu.common.FileExistsException.filename)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>


<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>lu</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>

<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>FileExistsException.filename</h1><div class="breadcrumbs"><a class="breadcrumb" href="lu.html">lu</a> <a class="breadcrumb" href="lu.common.html">common</a> <a class="breadcrumb" href="lu.common.FileExistsException.html">FileExistsException</a> </div><div><div class="documentation-comment synopsis"><div><p>The name of the file.</p></div></div></div><div class="annotated-prototype"><div class="declaration-prototype"><div class="parent-prototype"><span class="builtin-type">class</span> <span class="name">FileExistsException</span></div><div><div class="attributes"></div><tt class="highlighted"><span class="type">string</span></tt> <span class="name">filename</span>;</div></div></div><div></div></div>
<div id="page-nav"><a class="parent" href="lu.html">lu</a> <a class="parent" href="lu.common.html">common</a> <a class="parent" href="lu.common.FileExistsException.html">FileExistsException</a>
<span class="type-separator">constructors</span><ul><li><a class="constructor" href="lu.common.FileExistsException.this.1.html">this</a></li></ul><span class="type-separator">variables</span><ul><li><a class="variable current" href="lu.common.FileExistsException.filename.html">filename</a></li></ul></div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>
36 changes: 36 additions & 0 deletions lu.common.FileExistsException.html
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>FileExistsException (lu.common.FileExistsException)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>


<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>lu</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>

<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>FileExistsException</h1><div class="breadcrumbs"><a class="breadcrumb" href="lu.html">lu</a> <a class="breadcrumb" href="lu.common.html">common</a> </div><div><div class="documentation-comment synopsis"><div><p>Exception, to be thrown when attempting to create a file or directory and
finding that one already exists with the same name.</p><p>It is a normal <a class="xref" href="object.Exception.html">Exception</a> but with an attached filename string.</p></div></div></div><div class="annotated-prototype"><div class="aggregate-prototype"><div class="attributes">@<span class="name" data-ident="safe">safe</span> final </div><span class="builtin-type">class</span> FileExistsException : Exception {<div class="aggregate-member"><a href="lu.common.FileExistsException.filename.html"><div class="attributes"></div><tt class="highlighted"><span class="type">string</span></tt> <span class="name">filename</span>;</a></div><div class="aggregate-member"><a href="lu.common.FileExistsException.this.1.html"><span class="lang-feature name">this</span>(string message, string file, size_t line, Throwable nextInChain);</a></div><div class="aggregate-member"><a href="lu.common.FileExistsException.this.2.html"><span class="lang-feature name">this</span>(string message, string filename, string file, size_t line, Throwable nextInChain);</a></div>}</div></div><h2 id="constructors"><a class="header-anchor" href="#constructors">Constructors</a></h2><dl class="member-list constructors"><dt><a href="lu.common.FileExistsException.this.1.html">this</a><div class="simplified-prototype" style="max-width: 75ch;"><span class="lang-feature name">this</span>(string message, string file, size_t line, Throwable nextInChain)</div></dt><dd><div><p>Create a new <a class="xref" href="lu.common.FileExistsException.html">FileExistsException</a>, without attaching a filename.</p></div></dd><dt><a href="lu.common.FileExistsException.this.2.html">this</a><div class="simplified-prototype" style="max-width: 94ch;"><span class="lang-feature name">this</span>(string message, string filename, string file, size_t line, Throwable nextInChain)</div></dt><dd><div><p>Create a new <a class="xref" href="lu.common.FileExistsException.html">FileExistsException</a>, attaching a filename.</p></div></dd></dl><h2 id="members"><a class="header-anchor" href="#members">Members</a></h2><h3 class="member-list-header hide-from-toc" id="variable"><a class="header-anchor" href="#variable">Variables</a></h3><dl class="member-list native"><dt><a href="lu.common.FileExistsException.filename.html">filename</a><div class="simplified-prototype" style="max-width: 17ch;"><tt class="highlighted"><span class="type">string</span></tt> <span class="name">filename</span>;</div></dt><dd><div><p>The name of the file.</p></div></dd></dl><div></div></div>
<div id="page-nav"><a class="parent" href="lu.html">lu</a> <a class="parent" href="lu.common.html">common</a>
<span class="type-separator">classes</span><ul><li><a class="class current" href="lu.common.FileExistsException.html">FileExistsException</a></li><li><a class="class" href="lu.common.FileTypeMismatchException.html">FileTypeMismatchException</a></li><li><a class="class" href="lu.common.ReturnValueException.html">ReturnValueException</a></li></ul><span class="type-separator">enums</span><ul><li><a class="enum" href="lu.common.Next.html">Next</a></li></ul><span class="type-separator">functions</span><ul><li><a class="function" href="lu.common.sharedDomains.html">sharedDomains</a></li></ul></div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>
35 changes: 35 additions & 0 deletions lu.common.FileExistsException.this.1.html
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>FileExistsException.this (lu.common.FileExistsException.this)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>


<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>lu</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>

<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>FileExistsException.this</h1><div class="breadcrumbs"><a class="breadcrumb" href="lu.html">lu</a> <a class="breadcrumb" href="lu.common.html">common</a> <a class="breadcrumb" href="lu.common.FileExistsException.html">FileExistsException</a> </div><div><div class="documentation-comment synopsis"><div><p>Create a new <a class="xref" href="lu.common.FileExistsException.html">FileExistsException</a>, without attaching a filename.</p></div></div></div><div class="annotated-prototype"><ol class="overloads"><li class="active-overload-option"><span class="overload-signature"><span class="lang-feature name">this</span>(string message, string file, size_t line, Throwable nextInChain)</span><div class="function-prototype"><div class="parent-prototype"><span class="builtin-type">class</span> <span class="name">FileExistsException</span></div><div><div class="attributes">pure nothrow @<span class="name" data-ident="nogc">nogc</span> @<span class="name" data-ident="safe">safe</span> </div><div class="function-name">this</div><div class="template-parameters" data-count="0"></div><div class="runtime-parameters" data-count="4"><div class="parameters-list toplevel"><span class="paren">(</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="storage-class">const</span> <span class="builtin-type">string</span></span></span> <span class="parameter-name name" data-ident="message"><a href="#param-message">message</a></span></div><span class="comma">,</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="storage-class">const</span> <span class="builtin-type">string</span></span></span> <span class="parameter-name name" data-ident="file"><a href="#param-file">file</a></span><span class="parameter-default-value">&#160;=&#160;__FILE__</span></div><span class="comma">,</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="storage-class">const</span> <span class="name" data-ident="size_t">size_t</span></span></span> <span class="parameter-name name" data-ident="line"><a href="#param-line">line</a></span><span class="parameter-default-value">&#160;=&#160;__LINE__</span></div><span class="comma">,</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="name" data-ident="Throwable">Throwable</span></span></span> <span class="parameter-name name" data-ident="nextInChain"><a href="#param-nextInChain">nextInChain</a></span><span class="parameter-default-value">&#160;=&#160;null</span></div><span class="paren">)</span></div></div><div class="function-contracts"></div></div></div></li><li class="overload-option"><a href="lu.common.FileExistsException.this.2.html"><span class="overload-signature"><span class="lang-feature name">this</span>(string message, string filename, string file, size_t line, Throwable nextInChain)</span></a></li></ol></div><div></div></div>
<div id="page-nav"><a class="parent" href="lu.html">lu</a> <a class="parent" href="lu.common.html">common</a> <a class="parent" href="lu.common.FileExistsException.html">FileExistsException</a>
<span class="type-separator">constructors</span><ul><li><a class="constructor current" href="lu.common.FileExistsException.this.1.html">this</a></li></ul><span class="type-separator">variables</span><ul><li><a class="variable" href="lu.common.FileExistsException.filename.html">filename</a></li></ul></div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>

0 comments on commit d3ce187

Please sign in to comment.