added verify pipeline .

This commit is contained in:
Zero Fanker 2024-04-14 21:51:28 -04:00
parent 4cf5d340d0
commit 572357de5c

36
.github/workflows/verify.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Basic verify
on:
push:
branches: [ "!main", "!RN", "*" ]
jobs:
compile-check:
runs-on: windows-2019
env:
CONFIGURATION: Debug
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: recursive
- name: Change configuration to debug for PR
if: github.event_name == 'pull_request'
shell: bash
run: |
echo "CONFIGURATION=FinalAlertDebug YR" >> $GITHUB_ENV
mkdir Debug || true
- name: setup-msvc
uses: egor-tensin/vs-shell@v2
with:
# Target architecture
arch: x64
- name: build-msvc
run: |
devenv.com "MissionEditor.sln" /Build "${{ env.CONFIGURATION }}|x64" /project UnitTest
- name: do UT
run: |
cd x64\Debug
./UnitTest