From de23574cfbfb7183345129ffc9fd887e69e2bec1 Mon Sep 17 00:00:00 2001 From: SingingBush Date: Wed, 9 Jun 2021 22:42:45 +0100 Subject: [PATCH] Also test on GDC (Ubuntu only) --- .github/workflows/dub.yml | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/dub.yml b/.github/workflows/dub.yml index 6dc2174..692b800 100644 --- a/.github/workflows/dub.yml +++ b/.github/workflows/dub.yml @@ -115,3 +115,45 @@ jobs: dub run --build=release --config=constructorInjectionExample dub run --build=release --config=valueInjectionExample dub run --build=release --config=postConstructorPreDestructorExample + + # On Ubuntu we can use GDC (so keep working for D version 2.076) + gdc-latest: + name: GDC on Ubuntu + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install DMD (so dub is available) + uses: dlang-community/setup-dlang@v1 + with: + compiler: dmd-latest + + - name: Install GDC + run: | + sudo apt-get update + sudo apt-get install gdc -y + gdc --version + + - name: Build library + env: + DC: gdc + run: dub build --compiler=gdc --build=release --config=library + + - name: Build unittest + env: + DC: gdc + run: dub test --compiler=gdc --build=unittest --config=unittest + + - name: Build examples + env: + DC: gdc + run: | + dub run --compiler=gdc --build=release --config=quickstartExample + dub run --compiler=gdc --build=release --config=qualifiersExample + dub run --compiler=gdc --build=release --config=arrayCompletionExample + dub run --compiler=gdc --build=release --config=annotationsExample + dub run --compiler=gdc --build=release --config=applicationContextExample + dub run --compiler=gdc --build=release --config=registerOnResolveExample + dub run --compiler=gdc --build=release --config=constructorInjectionExample + dub run --compiler=gdc --build=release --config=valueInjectionExample + dub run --compiler=gdc --build=release --config=postConstructorPreDestructorExample \ No newline at end of file