diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6dce7d7ed..1e6874e6e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,4 +109,46 @@ jobs: - name: Test run: | cd $GITHUB_WORKSPACE/build - echo "Tests are so broken for MacOS :(" + echo "Tests are so broken for macOS :(" + build-windows: + name: Build on Windows + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Checkout vcpkg + uses: actions/checkout@v3 + with: + repository: 'Microsoft/vcpkg' + + - name: Bootstrap vcpkg + shell: pwsh + run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat + + - name: Install Deps + run: vcpkg install curl libxml2 libxslt bzip2 pcre pthreads zlib getopt-win32 xmlsec + + - name: Configure + working-directory: ./build + run: cmake -DENABLE_PYTHON3=FALSE -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake .. + + - name: Build + run: cmake --build -j 2 + working-directory: ./build + + - name: Package + run: cpack + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + path: |- + build\OpenSCAP*.msi + build\OpenSCAP*.msi.sha512 + + + + + +