Skip to content

Commit

Permalink
Build Windows on GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jan 2, 2024
1 parent 996f5a5 commit 116b2a3
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 116b2a3

Please sign in to comment.