Update ci.yml. Don't build with dmd on macos #12
Workflow file for this run
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: 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 |