-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (88 loc) · 2.65 KB
/
main.yml
File metadata and controls
102 lines (88 loc) · 2.65 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: WebFrame CI/CD Pipeline
on:
push:
permissions:
contents: write
packages: write
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
env:
VCPKG_BINARY_SOURCES: >-
clear;files,${{ github.workspace }}/vcpkg-test-cache,readwrite
steps:
- name: Checkout vcpkg
uses: actions/checkout@v6
with:
repository: microsoft/vcpkg
path: vcpkg
ref: '2026.01.16'
- name: Checkout code
uses: actions/checkout@v6
with:
repository: maxtek6/WebFrame
path: WebFrame
ref: ${{ github.ref }}
- name: "Restore VCPKG cache"
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/vcpkg-test-cache
key: vcpkg-test-cache-${{ github.run_id }}
restore-keys: vcpkg-test-cache
- name: CMake Build
run: |
cmake -S WebFrame -B build -DBUILD_TESTING=ON -DBUILD_RUNTIME=OFF -DVCPKG_ROOT=${{ github.workspace }}/vcpkg
cd build
make -j4
make test
- name: "Save VCPKG cache"
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/vcpkg-test-cache
key: vcpkg-test-cache-${{ github.run_id }}
build:
needs: test
name: Build Runtime
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
env:
VCPKG_BINARY_SOURCES: >-
clear;files,${{ github.workspace }}/vcpkg-${{ matrix.os }},readwrite
steps:
- name: Checkout vcpkg
uses: actions/checkout@v6
with:
repository: microsoft/vcpkg
path: vcpkg
ref: '2026.01.16'
- name: Checkout code
uses: actions/checkout@v6
with:
repository: maxtek6/WebFrame
path: WebFrame
ref: ${{ github.ref }}
- name: "Restore VCPKG cache"
uses: actions/cache/restore@v5
with:
path: ${{ github.workspace }}/vcpkg-${{ matrix.os }}
key: vcpkg-${{ matrix.os }}-${{ github.run_id }}
restore-keys: vcpkg-${{ matrix.os }}
- name: Ubuntu setup
if: matrix.os == 'ubuntu-latest'
run: ./WebFrame/.github/scripts/ubuntu_setup.sh
- name: MacOS setup
if: matrix.os == 'macos-latest'
run: ./WebFrame/.github/scripts/osx_setup.sh
- name: CMake Build
run: |
cmake -S WebFrame -B build -DBUILD_TESTING=OFF -DBUILD_RUNTIME=ON -DVCPKG_ROOT=${{ github.workspace }}/vcpkg
cmake --build build
- name: "Save VCPKG cache"
uses: actions/cache/save@v5
with:
path: ${{ github.workspace }}/vcpkg-${{ matrix.os }}
key: vcpkg-${{ matrix.os }}-${{ github.run_id }}