Skip to content

Commit

Permalink
Merge pull request #169 from dlang-community/fix-gh-actions
Browse files Browse the repository at this point in the history
ci(gh-actions): Update CI matrix
  • Loading branch information
PetarKirov authored Aug 27, 2021
2 parents 468f546 + 40b2b46 commit 36563f7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ on: [push, pull_request]
jobs:
main:
name: Build and test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest, ldc-latest]
libdparse-version: [min, max]
dc: [dmd-latest, ldc-latest, dmd-2.088.0, ldc-1.17.0]
include:
- { os: ubuntu-latest, dc: dmd-2.088.0, libdparse-version: min }
- { os: ubuntu-latest, dc: ldc-1.17.0, libdparse-version: min }
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

Expand All @@ -20,13 +26,15 @@ jobs:

- name: Build
env:
DC: ${{matrix.dc}}
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
run: |
git submodule update --init --recursive
rdmd ./d-test-utils/test_with_package.d $LIBDPARSE_VERSION libdparse -- dub build --build=release --compiler=${DC}
rdmd ./d-test-utils/test_with_package.d $LIBDPARSE_VERSION libdparse -- dub build --build=release
- name: Test
env:
DC: ${{matrix.dc}}
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
run: |
rdmd ./d-test-utils/test_with_package.d $LIBDPARSE_VERSION libdparse -- dub test --compiler=${DC}
rdmd ./d-test-utils/test_with_package.d $LIBDPARSE_VERSION libdparse -- dub test

0 comments on commit 36563f7

Please sign in to comment.