Fixing up build.yml. #9
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 and Run Automated Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install CMake | |
run: | | |
$url = 'https://github.com/Kitware/CMake/releases/download/v3.26.0/cmake-3.26.0-windows-x86_64.msi' | |
$output = 'cmake.msi' | |
Invoke-WebRequest -Uri $url -OutFile $output | |
Start-Process msiexec.exe -Wait -ArgumentList '/i', $output, '/quiet', '/norestart' | |
echo "C:\Program Files\CMake\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Install vcpkg and SQLite3 | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
.\vcpkg\bootstrap-vcpkg.bat | |
.\vcpkg\vcpkg install sqlite3:x64-windows | |
- name: Set up Visual Studio Environment | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Configure CMake | |
shell: pwsh | |
run: cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: cmake --build build | |
- name: Test | |
run: ./bin/testing |