File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed
Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build-windows-x64 :
11+ name : Windows x64 Release (vcpkg)
12+ runs-on : windows-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Set up MSVC
18+ uses : ilammy/msvc-dev-cmd@v1
19+ with :
20+ arch : x64
21+
22+ - name : Install Ninja
23+ uses : seanmiddleditch/gha-setup-ninja@v5
24+
25+ - name : Cache vcpkg
26+ uses : actions/cache@v4
27+ with :
28+ path : cmake-build/vcpkg_installed
29+ key : vcpkg-windows-x64-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
30+ restore-keys : vcpkg-windows-x64-
31+
32+ - name : Configure
33+ run : cmake --preset windows-release-vcpkg
34+
35+ - name : Build
36+ run : cmake --build cmake-build/build/windows-release-vcpkg --config Release --parallel
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+
8+ jobs :
9+ release-windows-x64 :
10+ name : Windows x64 Release (vcpkg)
11+ runs-on : windows-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up MSVC
17+ uses : ilammy/msvc-dev-cmd@v1
18+ with :
19+ arch : x64
20+
21+ - name : Install Ninja
22+ uses : seanmiddleditch/gha-setup-ninja@v5
23+
24+ - name : Cache vcpkg
25+ uses : actions/cache@v4
26+ with :
27+ path : cmake-build/vcpkg_installed
28+ key : vcpkg-windows-x64-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
29+ restore-keys : vcpkg-windows-x64-
30+
31+ - name : Configure
32+ run : cmake --preset windows-release-vcpkg
33+
34+ - name : Build
35+ run : cmake --build cmake-build/build/windows-release-vcpkg --config Release --parallel
36+
37+ - name : Install
38+ run : cmake --install cmake-build/build/windows-release-vcpkg --prefix dist
39+
40+ - name : Pack
41+ run : tar -czf yail-${{ github.ref_name }}-windows-x64.tar.gz -C dist .
42+
43+ - name : Upload release asset
44+ uses : softprops/action-gh-release@v2
45+ with :
46+ files : yail-${{ github.ref_name }}-windows-x64.tar.gz
You can’t perform that action at this time.
0 commit comments