Add project. #114
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: GitHub CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
windowsBuild: | |
name: Windows Build | |
runs-on: windows-latest | |
env: | |
LLVM_VERSION: 18.1.8 | |
strategy: | |
fail-fast: false | |
matrix: | |
CRT: | |
- msvcrt | |
- libcmt | |
TARGET_CPU: | |
- amd64 | |
CONFIGURATION: | |
- Debug | |
- Release | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install | |
shell: cmd | |
run: | | |
call %GITHUB_WORKSPACE%\set-env.bat msvc17 ${{matrix.CRT}} ${{matrix.TARGET_CPU}} ${{matrix.CONFIGURATION}} | |
call %GITHUB_WORKSPACE%\install.bat | |
- name: Build and test | |
id: BUILD | |
shell: cmd | |
run: | | |
call %GITHUB_WORKSPACE%\set-env.bat msvc17 ${{matrix.CRT}} ${{matrix.TARGET_CPU}} ${{matrix.CONFIGURATION}} | |
call %GITHUB_WORKSPACE%\build.bat | |
echo ::set-output name=DEPLOY_FILE::%DEPLOY_FILE% | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{steps.BUILD.outputs.DEPLOY_FILE}} |