From 334eb60b4d005ed4622fdc298218b33c448b9fe3 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 25 Mar 2023 22:59:22 +0200 Subject: [PATCH] Update d.yml --- .github/workflows/d.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 31bfd65f..966f3261 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -15,19 +15,23 @@ permissions: contents: read jobs: - build: - - runs-on: ubuntu-latest + test: + name: Dub Tests + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + dc: [dmd-latest, ldc-latest, dmd-2.085.0, ldc-1.17.0] + exclude: + - { os: macOS-latest, dc: dmd-2.085.0 } + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7 + - uses: actions/checkout@v2 - - name: 'Build & Test' - run: | - # Build the project, with its main file included, without unittests - dub build --compiler=$DC - # Build and run tests, as defined by `unittest` configuration - # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included - # See https://dub.pm/package-format-json.html#configurations - dub test --compiler=$DC + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: ${{ matrix.dc }} + + - name: Run tests + run: dub -q test