From 8f2308795403759f91985ce4737b42f8b762bfe2 Mon Sep 17 00:00:00 2001 From: Joni Orponen Date: Wed, 28 Dec 2022 19:33:53 +0100 Subject: [PATCH] Add a static Windows build to the CI. --- .../push-unit-tests-static-windows.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/push-unit-tests-static-windows.yaml diff --git a/.github/workflows/push-unit-tests-static-windows.yaml b/.github/workflows/push-unit-tests-static-windows.yaml new file mode 100644 index 000000000..0adf698e0 --- /dev/null +++ b/.github/workflows/push-unit-tests-static-windows.yaml @@ -0,0 +1,35 @@ +name: Unit Tests / Required / Static / Windows +on: push + +jobs: + build: + name: 'Server 2022' + runs-on: windows-2022 + steps: + + - name: Checkout Vcpkg + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + with: + repository: Microsoft/vcpkg + ref: f6a5d4e8eb7476b8d7fc12a56dff300c1c986131 # 2023.06.20 + path: vcpkg + + - name: Setup Vcpkg + run: | + vcpkg/bootstrap-vcpkg.bat + vcpkg integrate install + + - name: Checkout Anura + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + + - name: Install Vcpkg Dependencies + run: vcpkg install + + - name: Install MSBuild + uses: microsoft/setup-msbuild@1ff57057b5cfdc39105cd07a01d78e9b0ea0c14c # v1.3.1 + + - name: Build Anura + run: msbuild -m windows/anura.sln + + - name: Run Unit Tests + run: anura.exe --tests