File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
import Builder
2
2
import os
3
3
import sys
4
+ import argparse
4
5
5
6
6
7
class BuildSamples (Builder .Action ):
@@ -9,6 +10,11 @@ def run(self, env):
9
10
print ('skip_samples is defined. Skipping samples...' )
10
11
return
11
12
13
+ # parse extra cmake configs
14
+ parser = argparse .ArgumentParser ()
15
+ parser .add_argument ('--cmake-extra' , action = 'append' , default = [])
16
+ cmd_args = parser .parse_known_args (env .args .args )[0 ]
17
+
12
18
steps = []
13
19
samples = [
14
20
'samples/mqtt/basic_pub_sub' ,
@@ -28,6 +34,8 @@ def run(self, env):
28
34
f'-H{ sample_path } ' ,
29
35
f'-DCMAKE_PREFIX_PATH={ env .install_dir } ' ,
30
36
'-DCMAKE_BUILD_TYPE=RelWithDebInfo' ])
37
+ # append extra cmake configs
38
+ steps [- 1 ].extend (cmd_args .cmake_extra )
31
39
steps .append (['cmake' ,
32
40
'--build' , build_path ,
33
41
'--config' , 'RelWithDebInfo' ])
Original file line number Diff line number Diff line change @@ -75,34 +75,28 @@ jobs:
75
75
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
76
76
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DUSE_CPU_EXTENSIONS=OFF
77
77
78
- windows-vs16 :
78
+ windows :
79
79
runs-on : windows-latest
80
80
steps :
81
81
- name : Build ${{ env.PACKAGE_NAME }} + consumers
82
82
run : |
83
83
md D:\a\work
84
84
cd D:\a\work
85
85
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder.pyz')"
86
- python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
86
+ python builder.pyz build -p ${{ env.PACKAGE_NAME }}
87
87
88
88
windows-vs14 :
89
- runs-on : windows-latest
89
+ runs-on : windows-2019 # windows-2019 is last env with Visual Studio 2015 (v14.0)
90
90
strategy :
91
91
matrix :
92
- arch : [x86 , x64]
92
+ arch : [Win32 , x64]
93
93
steps :
94
- - uses : ilammy/msvc-dev-cmd@v1
95
- with :
96
- toolset : 14.0
97
- arch : ${{ matrix.arch }}
98
- uwp : false
99
- spectre : true
100
94
- name : Build ${{ env.PACKAGE_NAME }} + consumers
101
95
run : |
102
96
md D:\a\work
103
97
cd D:\a\work
104
98
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
105
- python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
99
+ python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-Tv140 --cmake-extra=-A${{ matrix.arch }}
106
100
107
101
windows-no-cpu-extensions :
108
102
runs-on : windows-latest
You can’t perform that action at this time.
0 commit comments