Skip to content

Update README.md

Update README.md #1250

Workflow file for this run

name: D
on:
push:
branches-ignore:
- travis-*
- circleci-*
- appveyor-*
- dustmite-*
- gh-pages
- onlinetests
pull_request:
branches-ignore:
- travis-*
- circleci-*
- appveyor-*
- dustmite-*
- gh-pages
- onlinetests
jobs:
build:
name: 'Everything'
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
dc: [ dmd-latest, dmd-2.087.0, ldc-latest, ldc-1.25.0 ]
exclude:
- { os: macOS-latest, dc: dmd-2.087.0 }
runs-on: ${{ matrix.os }}
continue-on-error: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: 'Install D compiler'
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: 'Run tests unless Windows'
if: matrix.os != 'windows-latest'
run: dub test --arch=x86_64
- name: 'Build tests if Windows'
if: matrix.os == 'windows-latest'
run: dub build -c unittest --arch=x86_64
- name: 'Build: dev (debug)'
run: dub build -c dev -b debug --arch=x86_64
- name: 'Build: dev (plain)'
run: dub build -c dev -b plain --arch=x86_64
- name: 'Build: dev (release)'
if: matrix.dc != 'dmd-2.087.0'
run: dub build -c dev -b release --arch=x86_64
- name: 'Build: application (debug)'
run: dub build -b debug --arch=x86_64
- name: 'Build: application (plain)'
run: dub build -b plain --arch=x86_64
- name: 'Build: application (release)'
if: matrix.dc != 'dmd-2.087.0'
run: dub build -b release --arch=x86_64
- name: 'Generate documenation'
if: matrix.dc == 'dmd-latest' && matrix.os == 'ubuntu-latest' && success()
run: |
git clone https://github.com/zorael/dialect.git
git clone https://github.com/zorael/lu.git
dub fetch adrdox
dub run adrdox -- -ip --header-title="kameloso IRC bot" source dialect/source lu/source
cp -rv .circleci generated-docs
- name: 'Deploy documentation to GitHub Pages'
if: matrix.dc == 'dmd-latest' && matrix.os == 'ubuntu-latest' && success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
keep_history: false
allow_empty_commit: true
build_dir: generated-docs