Skip to content

Update ci.yml. Don't build with dmd on macos #12

Update ci.yml. Don't build with dmd on macos

Update ci.yml. Don't build with dmd on macos #12

Workflow file for this run

name: build
on:
pull_request:
push:
release:
types: [published]
jobs:
Build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dc:
- ldc-latest
- dmd-latest
exclude:
- os: macos-latest
dc: dmd-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup D
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Build and run example
run: |
dub build
dub --single examples/printdirs.d
- name: Build and run example with Cocoa
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
dub build --config=cocoa
dub --single examples/printdirs.d --override-config=standardpaths/cocoa
- name: Run tests on xdg
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
dub test -b unittest