From 572357de5c7ff7edcfaf4f425ab232130a78d8cd Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Sun, 14 Apr 2024 21:51:28 -0400 Subject: [PATCH] added verify pipeline . --- .github/workflows/verify.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/verify.yml diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..32d5b6b --- /dev/null +++ b/.github/workflows/verify.yml @@ -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 \ No newline at end of file