update workflow #620
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: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
matrix-build: | |
name: Matrix Build | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-13, macOS-latest] | |
dc: [dmd-2.099.1, dmd-latest, ldc-latest] | |
exclude: | |
- { os: macOS-latest, dc: dmd-2.099.1 } | |
- { os: macOS-latest, dc: dmd-latest } | |
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: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |