Skip to content

Commit

Permalink
Merge pull request #28 from konovod/master
Browse files Browse the repository at this point in the history
Fix Windows CI
  • Loading branch information
naqvis authored Apr 24, 2023
2 parents f9364b1 + ab90c77 commit f3f0ad7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@cec98b9d092141f74527d0afa6feb2af698cfe89 # v1.12.1
- name: Install Webview2 SDK
run: |
mkdir libs\webview2
Expand All @@ -22,6 +24,11 @@ jobs:
- name: Install crystal land dependencies
run: shards install
- name: Compile library
run: make
shell: powershell
run: |
cd ext
cl /D "WEBVIEW_API=__declspec(dllexport)" /std:c++17 /EHsc webview.cc /link /DLL "/OUT:..\webview.dll"
cd ..
copy webview.lib (crystal env CRYSTAL_LIBRARY_PATH)
- name: Run tests
run: crystal spec

0 comments on commit f3f0ad7

Please sign in to comment.