-
Notifications
You must be signed in to change notification settings - Fork 1
124 lines (106 loc) · 3.27 KB
/
build-release-windows.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Build Release (x86, x64)
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
workflow_dispatch:
jobs:
build_debug_x86:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Building i686 (Debug)
run: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A Win32 ..
cmake --build . --config Debug
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "Debug x86"
path: |
xp-apps.exe'
cpr.dll'
libcurl.dll'
zlib.dll'
build_debug_x64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Building x64 (Debug)
run: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" ..
cmake --build . --config Debug
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "Debug x64"
path: |
xp-apps.exe'
cpr.dll'
libcurl.dll'
zlib.dll'
build_release_x86:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
# - run: dir "C:\Program Files"
# - name: Set up MinGW
# uses: egor-tensin/setup-mingw@v2
# with:
# platform: i686
# version: 12.2.0
# - name: Downloading mingw64 i686 and extracting
# run: |
# mkdir temp
# curl -Lo ${{github.workspace}}\temp\mingw64.7z https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev1/i686-13.2.0-release-win32-dwarf-msvcrt-rt_v11-rev1.7z
# Expand-7ZipArchive -Path ${{github.workspace}}\temp\mingw64.7z -DestinationPath C:\
- name: Building i686 (Release)
run: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A Win32 ..
cmake --build . --config Release
# $env:path += ";C:\mingw32\bin\;"
# cmake -D CMAKE_C_COMPILER=C:\mingw32\bin\gcc.exe -D CMAKE_CXX_COMPILER=C:\mingw32\bin\g++.exe ..
- run: dir "${{github.workspace}}\build\Release"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "Release x86"
path: |
xp-apps.exe'
cpr.dll'
libcurl.dll'
zlib.dll'
build_release_x64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Building x64
run: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" ..
cmake --build . --config Release
# mkdir build
# cd build
# cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++ ..
# cmake --build . --config Release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "Release x64"
path: |
xp-apps.exe'
cpr.dll'
libcurl.dll'
zlib.dll'