-
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (58 loc) · 1.75 KB
/
windows.yml
File metadata and controls
58 lines (58 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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-2025
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: 6548e2ee65216d462b945337ba74d09269fb4e8f
token: ${{ github.token }}
cache-key: ${{ matrix.variant.triplet }}-6548e2ee65216d462b945337ba74d09269fb4e8f
- 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