Use $DC, only fall back to dmd #22
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: dmd-2.103.1 | |
- name: Build | |
run: | | |
dub build --compiler=$DC | |
- name: Test | |
run: | | |
dub test --compiler=$DC --config=example | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: dmd-latest | |
- run: | | |
dub fetch [email protected] | |
- name: Check Style | |
run: | | |
dub run dscanner -- --styleCheck src test |