build release windows #3
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 release windows | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['windows-latest'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- name: Setup C++ environment on Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install mingw | |
choco install cmake | |
- name: run build | |
run: | | |
git submodule update --init --recursive | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=RELEASE .. | |
msbuild ALL_BUILD.vcxproj /t:Build /p:Configuration=Release | |
- name: upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release-packages | |
path: ./bin/Release/sqlcheck.* |