Skip to content

Adjust matrix build to macOS only #699

Adjust matrix build to macOS only

Adjust matrix build to macOS only #699

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
schedule:
- cron: '0 0 * * 0'
jobs:
matrix-build:
name: Matrix Build
strategy:
matrix:
os: [macOS-latest, macOS-13]
dc: [ldc-1.39.0, ldc-1.38.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Run tests
run: dub test --build=unittest-cov --verbose
- name: Run tests (dip1000)
env:
DFLAGS: -dip1000
run: dub test --build=unittest-cov --verbose
- name: Run tests (in)
env:
DFLAGS: -preview=in
run: dub test --build=unittest-cov --verbose
- name: Run tests (dip1000 & in)
env:
DFLAGS: -dip1000 -preview=in
run: dub test --build=unittest-cov --verbose
- name: Build examples
run: dub --root examples build --parallel --verbose
- name: Run examples
run: |
dub run --root examples --verbose all:completion-separate_main-app
dub run --root examples --verbose all:completion-separate_main-completer
dub run --root examples --verbose all:completion-single_main-app
dub run --root examples --verbose all:completion-single_main-completer
dub run --root examples --verbose all:getting_started-advanced -- foo
dub run --root examples --verbose all:getting_started-basic
dub run --root examples --verbose all:sub_commands-advanced
dub run --root examples --verbose all:sub_commands-advanced
dub run --root examples --verbose all:sub_commands-basic
dub run --root examples --verbose all:sub_commands-common_args
dub run --root examples --verbose all:sub_commands-default
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}