Windows #468
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| types: [ "review_requested", "ready_for_review" ] | |
| workflow_dispatch: | |
| name: Windows | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| GITHUB_ACTIONS: true | |
| VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
| jobs: | |
| build: | |
| name: "Build on Windows" | |
| strategy: | |
| matrix: | |
| variant: | |
| - arch: x64 | |
| runner: windows-latest | |
| triplet: x64-windows | |
| #- arch: arm64 | |
| # runner: windows-11-arm | |
| # triplet: arm64-windows | |
| runs-on: ${{ matrix.variant.runner }} | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: "Setup Environment" | |
| run: mkdir build | |
| - name: "Vcpkg" | |
| uses: johnwason/vcpkg-action@v7 | |
| id: vcpkg | |
| with: | |
| pkgs: boost-json cpr gettext-libintl gtest maddy sqlcipher | |
| triplet: ${{ matrix.variant.triplet }} | |
| revision: 29ff5b8131d0c6c8fcb8fbaef35992f0d507cd7c | |
| token: ${{ github.token }} | |
| cache-key: ${{ matrix.variant.triplet }}-29ff5b8131d0c6c8fcb8fbaef35992f0d507cd7c | |
| - name: "Build" | |
| working-directory: ${{github.workspace}}/build | |
| run: | | |
| cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install | |
| cmake --build . --config Release | |
| - name: "Install" | |
| working-directory: ${{github.workspace}}/build | |
| run: cmake --install . | |
| - name: "Test" | |
| run: ${{github.workspace}}/build/Release/libnick_test.exe | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ${{github.workspace}}/install | |
| name: Windows-${{ matrix.variant.arch }}-Release |