|
| 1 | +name: build and test Visual D |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +env: |
| 6 | + # Path to the solution file relative to the root of the project. |
| 7 | + SOLUTION_FILE_PATH: visuald_vs10.sln |
| 8 | + |
| 9 | + # Configuration type to build. |
| 10 | + D_COMPILER: dmd |
| 11 | + CONFIG: Release COFF32 |
| 12 | + CONFIG_DMDSERVER: Release COFF32 |
| 13 | + |
| 14 | +jobs: |
| 15 | + build: |
| 16 | + runs-on: windows-2019 |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v2 |
| 19 | + - name: Install D compiler |
| 20 | + uses: dlang-community/setup-dlang@v1 |
| 21 | + with: |
| 22 | + compiler: dmd-2.098.1 |
| 23 | + - name: Add MSBuild to PATH |
| 24 | + uses: microsoft/setup-msbuild@v1.0.2 |
| 25 | + - name: Install Visual D |
| 26 | + shell: pwsh |
| 27 | + run: | |
| 28 | + curl -Lo VisualD-v1.2.0.exe https://github.com/dlang/visuald/releases/download/v1.2.0/VisualD-v1.2.0.exe |
| 29 | + .\VisualD-v1.2.0.exe /S |
| 30 | + - name: configure DMD path |
| 31 | + shell: cmd |
| 32 | + run: | |
| 33 | + echo wd=%CD% |
| 34 | + where dmd |
| 35 | + reg add "HKLM\SOFTWARE\DMD" /v InstallationFolder /t REG_SZ /d c:\projects /reg:32 /f |
| 36 | + - name: disable link dependencies monitoring, fails on AppVeyor server |
| 37 | + run: reg add "HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\ToolsOptionsPages\Projects\Visual D Settings" /v optlinkDeps /t REG_DWORD /d 0 /reg:32 /f |
| 38 | + - name: Print environment info |
| 39 | + shell: cmd |
| 40 | + run: | |
| 41 | + set |
| 42 | + msbuild /version |
| 43 | + call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat" |
| 44 | + - name: Build visuald |
| 45 | + working-directory: ${{env.GITHUB_WORKSPACE}} |
| 46 | + shell: cmd |
| 47 | + run: | |
| 48 | + echo wd=%CD% |
| 49 | + rem Fetch submodules |
| 50 | + git submodule update --init --recursive |
| 51 | + rem ignore failure once, in case it needs reloading the sdk project |
| 52 | + nmake "CONFIG=${{env.CONFIG}}" prerequisites || nmake "CONFIG=${{env.CONFIG}}" prerequisites |
| 53 | + rem build Visual D |
| 54 | + nmake "CONFIG=${{env.CONFIG}}" visuald_vs |
| 55 | + rem build and run Visual D unittests |
| 56 | + nmake "CONFIG=${{env.CONFIG}}" "CONFIG_DMDSERVER=${{env.CONFIG_DMDSERVER}}" visuald_test dmdserver_test |
0 commit comments