diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000000..a960a83d21 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,40 @@ +name: Windows + +on: + pull_request: + paths: + - '**.c' + - '**.h' + - '**.sh' + - .github/workflows/linux.yml + - '**.am' + - doc/** + - configure.ac + push: + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + runs-on: ${{ matrix.image }} + strategy: + matrix: + platform: [x86, x64] + configuration: [Light, Release] + image: [windows-2019, windows-2022] + env: + OPENPACE_VER: 1.1.3 + steps: + - uses: actions/checkout@v4 + - name: Prepare vcpkg + uses: lukka/run-vcpkg@v7 + with: + vcpkgArguments: zlib + vcpkgGitCommitId: 18b028fe785e707265fa0e35590b7537ae1d12ea + vcpkgTriplet: ${{ matrix.platform }}-windows-static + - name: Install CPDK + run: | + Invoke-WebRequest https://download.microsoft.com/download/1/7/6/176909B0-50F2-4DF3-B29B-830A17EA7E38/CPDK_RELEASE_UPDATE/cpdksetup.exe -OutFile cpdksetup.exe + dir + msiexec /i cpdksetup.exe /quiet