-
Notifications
You must be signed in to change notification settings - Fork 2.2k
154 lines (142 loc) · 4.98 KB
/
packages-qa.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: Release Packages QA
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
mkrelease_win:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Install packages
run: sudo apt-get update && sudo apt-get -y install dos2unix
-
name: Build release package
run: |
export POCO_BASE=`pwd`
export PATH=$POCO_BASE/release/script:$PATH
mkrel -c unix2dos
mkrel -c unix2dos all
-
name: Copy artifacts
uses: actions/upload-artifact@v4
with:
name: windows-archives
path: releases/poco*.zip
overwrite: true
retention-days: 1
mkrelease:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Build release package
run: |
export POCO_BASE=`pwd`
export PATH=$POCO_BASE/release/script:$PATH
mkrel
mkrel all
-
name: Copy artifacts
uses: actions/upload-artifact@v4
with:
name: posix-archives
path: releases/poco*.tar.gz
overwrite: true
retention-days: 1
linux-gcc-make-mkrelease:
runs-on: ubuntu-22.04
needs: mkrelease
steps:
- uses: actions/download-artifact@v4
with:
name: posix-archives
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
- run: rm poco-*-all.tar.gz
- run: mkdir poco && cd poco && tar xfz ../poco-*.tar.gz --strip-components=1
- run: cd poco && ./configure --everything && make all -s -j`nproc`
linux-gcc-make-mkrelease-all:
runs-on: ubuntu-22.04
needs: mkrelease
steps:
- uses: actions/download-artifact@v4
with:
name: posix-archives
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
- run: mkdir poco && cd poco && tar xfz ../poco-*-all.tar.gz --strip-components=1
- run: cd poco && ./configure --everything && make all -s -j`nproc`
linux-gcc-cmake-mkrelease:
runs-on: ubuntu-22.04
needs: mkrelease
steps:
- uses: actions/download-artifact@v4
with:
name: posix-archives
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev
- run: rm poco-*-all.tar.gz
- run: mkdir poco && cd poco && tar xfz ../poco-*.tar.gz --strip-components=1
- run: cmake -Spoco -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
linux-gcc-cmake-mkrelease-all:
runs-on: ubuntu-22.04
needs: mkrelease
steps:
- uses: actions/download-artifact@v4
with:
name: posix-archives
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev
- run: mkdir poco && cd poco && tar xfz ../poco-*-all.tar.gz --strip-components=1
- run: cmake -Spoco -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
windows-2022-msvc-buildwin-x64-mkrelease-all:
runs-on: windows-2022
needs: mkrelease_win
steps:
- uses: actions/download-artifact@v4
with:
name: windows-archives
- run: |
7z x poco-*-all.zip
cd poco-*-all
.\buildwin.ps1 -poco_base . -vs 170 -action build -linkmode all -config release -platform x64 -samples -tests -omit "Crypto,NetSSL_OpenSSL,Data/MySQL,Data/PostgreSQL,JWT"
windows-2022-msvc-buildwin-x64-mkrelease:
runs-on: windows-2022
needs: mkrelease_win
steps:
- uses: actions/download-artifact@v4
with:
name: windows-archives
- run: |
rm poco-*-all.zip
7z x poco-*.zip
cd poco-*
.\buildwin.ps1 -poco_base . -vs 170 -action build -linkmode all -config release -platform x64 -samples -tests
windows-2022-msvc-cmake-mkrelease-all:
runs-on: windows-2022
needs: mkrelease_win
steps:
- uses: actions/download-artifact@v4
with:
name: windows-archives
- run: |
7z x poco-*-all.zip
cd poco-*-all
cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
cmake --build cmake-build --config Release
windows-2022-msvc-cmake-mkrelease:
runs-on: windows-2022
needs: mkrelease_win
steps:
- uses: actions/download-artifact@v4
with:
name: windows-archives
- run: |
rm poco-*-all.zip
7z x poco-*.zip
cd poco-*
cmake -S. -Bcmake-build -DENABLE_TESTS=ON
cmake --build cmake-build --config Release