-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.26 KB
/
build.yml
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
name: Demo Build
on:
push:
branches:
- main
jobs:
demo-build:
name: Demo Build
runs-on: windows-2022
steps:
- name: Set Mingw64 Ninja
run: |
(new-object System.Net.WebClient).DownloadFile('https://github.com/axojhf/cpp_library_build/releases/download/deps-toolchains/llvm-mingw1706_64.7z','mingw64.7z')
7z x -aoa -oC:\llvm-mingw1706_64 mingw64.7z ; rm mingw64.7z
(new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip','ninja-win.zip')
7z x -aoa -oC:\ninja ninja-win.zip ; rm ninja-win.zip
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
toolset: 14.3
# - name: Package Directories
# run: |
# cp -r C:\curl_install\lib C:\cpr_install -Force
# cp -r C:\curl_install\include C:\cpr_install -Force
# 7z a cpr_MinGW64_Static.7z C:\cpr_install
# - uses: actions/upload-artifact@v4
# with:
# name: cpr_MinGW64_Static
# path: cpr_MinGW64_Static.7z
# - name: Update Cpr Release
# uses: softprops/action-gh-release@v2
# with:
# tag_name: cpr-build
# files: |
# cpr_MinGW64_Static.7z