Skip to content

[CI troubleshoot Windows] #133

[CI troubleshoot Windows]

[CI troubleshoot Windows] #133

Workflow file for this run

name: Run imap-d tests
on: [push, pull_request]
jobs:
test:
name: imap-d D tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-20.04, windows-2019]
dc: [dmd-latest, ldc-latest] #, dmd-2.085.0, ldc-1.17.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1.1.1
with:
compiler: ${{ matrix.dc }}
- name: "Windows: install full OpenSSL package, copy & rename import libs, then set KAL_EXT_LIB_WIN64 env var"
if: runner.os == 'Windows'
shell: cmd
run: |
choco install openssl --no-progress || exit /b
mkdir extern_deps || exit /b
dir "%PROGRAMFILES%\OpenSSL"
dir "%PROGRAMFILES%\OpenSSL\lib"
dir "%PROGRAMFILES%\OpenSSL\lib\VC"
copy "%PROGRAMFILES%\OpenSSL\lib\VC\libssl64MT.lib" extern_deps\libssl.lib || exit /b
copy "%PROGRAMFILES%\OpenSSL\lib\VC\libcrypto64MT.lib" extern_deps\libcrypto.lib || exit /b
echo KAL_EXT_LIB_WIN64=%CD%\extern_deps>> %GITHUB_ENV%
- name: dub build
run: dub build
- name: Build example with dub
run: dub build --root=example
- name: Build test with dub
run: dub build --root=test
- name: Run all unittests with coverage
run: dub test --build=unittest-cov
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
with:
verbose: true