wip #214
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: Build | |
on: | |
push: | |
branches: | |
- feature/windows2019 | |
jobs: | |
build-windows: | |
runs-on: windows-2022 | |
steps: | |
# If this step breaks, try inspecting MSVC directory and consider changing appropriate paths. | |
# | |
# ls 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\' | |
# | |
# Since windows runner can be updated the version can change in future releases. | |
- name: Install SQLite3 + generate sqlite3.lib | |
run: | | |
choco install sqlite -y | |
cd C:\ProgramData\chocolatey\lib\SQLite\tools | |
ls 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\' | |
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\lib.exe' /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64 | |
cp sqlite3.lib 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: 1.9 | |
- run: shards install --production | |
- run: crystal build src\cli.cr -o dist\coveralls --release --static --no-debug --progress | |
- run: | | |
cd dist | |
- name: Running | |
shell: pwsh | |
run: coveralls done -r 123 |