v2.2.0 #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: D | |
on: | |
push: | |
branches-ignore: | |
- travis-* | |
- circleci-* | |
- appveyor-* | |
- dustmite-* | |
- gh-pages | |
pull_request: | |
branches-ignore: | |
- travis-* | |
- circleci-* | |
- appveyor-* | |
- dustmite-* | |
- gh-pages | |
jobs: | |
build: | |
name: 'Everything' | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macOS-latest, windows-latest ] | |
dc: [ dmd-latest, dmd-2.085.0, ldc-latest, ldc-1.14.0 ] | |
exclude: | |
- { os: macOS-latest, dc: dmd-2.085.0 } | |
- { os: macOS-latest, dc: ldc-1.14.0 } | |
runs-on: ${{ matrix.os }} | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Install D compiler' | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: 'Build and test' | |
run: | | |
dub test | |
dub build --nodeps -b debug | |
dub build --nodeps -b debug -c dev | |
dub build --nodeps -b plain | |
dub build --nodeps -b plain -c dev | |
dub build --nodeps -b release | |
dub build --nodeps -b release -c dev | |
dub build --nodeps :assertgen | |
- name: 'Generate documenation' | |
if: matrix.dc == 'dmd-latest' && matrix.os == 'ubuntu-latest' && success() | |
run: | | |
git clone https://github.com/zorael/lu.git | |
dub fetch adrdox | |
dub run adrdox -- -ip --header-title="dialect IRC parser" 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/[email protected] | |
with: | |
target_branch: gh-pages | |
keep_history: false | |
allow_empty_commit: true | |
build_dir: generated-docs |