17
17
cc : " gcc-9" ,
18
18
cxx : " g++-9"
19
19
}
20
- - {
21
- name : " Ubuntu-clang" ,
22
- os : ubuntu-latest,
23
- set_path : " export PATH=$PATH:/home/runner/.local/bin" ,
24
- conan_profile : ' ./tools/profiles/ubuntu_clang_Release_gh.txt' ,
25
- cc : " clang" ,
26
- cxx : " clang++"
27
- }
28
20
- {
29
21
name : " macOs-clang" ,
30
22
os : macos-latest,
50
42
- name : Download and Install Dependencies
51
43
run : |
52
44
pip3 install wheel setuptools numpy
53
- pip3 install conan==1.58.0
45
+ pip3 install conan
54
46
- name : Download and Install Dependencies (Ubuntu)
55
47
if : ${{ contains(matrix.config.os, 'Ubuntu') }}
56
48
run : |
@@ -66,19 +58,15 @@ jobs:
66
58
pushd ${{ github.workspace }}/pagoda
67
59
git submodule update --init --recursive
68
60
popd
69
- conan install -if ${{ github.workspace }}/build -pr ${{ github.workspace}}/pagoda/${{ matrix.config.conan_profile }} ${{ github.workspace }}/pagoda --build=missing
70
- conan build -bf ${{ github.workspace }}/build ${{ github.workspace }}/pagoda
61
+ conan install -of ${{ github.workspace }}/build ${{ github.workspace }}/pagoda --build=missing
62
+ cmake --preset conan-release
63
+ cmake --build ${{ github.workspace }}/build -j 24
71
64
72
65
- name : Run tests
73
66
run : |
74
67
cd build
75
68
ctest -C Release
76
69
77
- - name : Create package
78
- run : |
79
- ${{ matrix.config.set_path }}
80
- conan package -bf ${{ github.workspace }}/build -pf ${{ github.workspace }}/build/pagoda ${{ github.workspace }}/pagoda
81
-
82
70
- name : Pack Build Results
83
71
if : always()
84
72
shell : cmake -P {0}
@@ -109,82 +97,3 @@ jobs:
109
97
with :
110
98
path : ./${{ matrix.config.name }}.tar.xz
111
99
name : ${{ matrix.config.name }}.tar.xz
112
-
113
- release :
114
- if : contains(github.ref, 'tags/v')
115
- runs-on : ubuntu-latest
116
- needs : build
117
-
118
- steps :
119
- - name : Create Release
120
- id : create_release
121
- uses : actions/create-release@v1.0.0
122
- env :
123
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124
- with :
125
- tag_name : ${{ github.ref }}
126
- release_name : Release ${{ github.ref }}
127
- draft : false
128
- prerelease : false
129
-
130
- - name : Store Release url
131
- run : |
132
- echo "${{ steps.create_release.outputs.upload_url }}" > ./upload_url
133
-
134
- - uses : actions/upload-artifact@v1
135
- with :
136
- path : ./upload_url
137
- name : upload_url
138
-
139
- publish :
140
- if : contains(github.ref, 'tags/v')
141
- runs-on : ${{ matrix.config.os }}
142
- needs : release
143
- strategy :
144
- fail-fast : false
145
- matrix :
146
- config :
147
- - {
148
- name : " Ubuntu-gcc" ,
149
- os : ubuntu-latest,
150
- }
151
- - {
152
- name : " Ubuntu-clang" ,
153
- os : ubuntu-latest,
154
- }
155
- - {
156
- name : " macOs-clang" ,
157
- os : ubuntu-latest,
158
- }
159
- - {
160
- name : " Windows-msvc" ,
161
- os : windows-latest,
162
- }
163
-
164
- steps :
165
- - name : Download artifact
166
- uses : actions/download-artifact@v1
167
- with :
168
- name : ${{ matrix.config.name }}.tar.xz
169
- path : ./
170
-
171
- - name : Download URL
172
- uses : actions/download-artifact@v1
173
- with :
174
- name : upload_url
175
- path : ./
176
- - id : set_upload_url
177
- run : |
178
- upload_url=`cat ./upload_url`
179
- echo ::set-output name=upload_url::$upload_url
180
-
181
- - name : Upload to Release
182
- id : upload_to_release
183
- uses : actions/upload-release-asset@v1.0.1
184
- env :
185
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
186
- with :
187
- upload_url : ${{ steps.set_upload_url.outputs.upload_url }}
188
- asset_path : ./${{ matrix.config.name }}.tar.xz
189
- asset_name : ${{ matrix.config.name }}.tar.xz
190
- asset_content_type : application/x-gtar
0 commit comments