Skip to content

Commit 29156bf

Browse files
Diego Jesusdiegoarjz
Diego Jesus
authored andcommitted
Update pipeline to build with conan2
Also make it simpler for now
1 parent bc75398 commit 29156bf

File tree

4 files changed

+73
-167
lines changed

4 files changed

+73
-167
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ jobs:
1717
cc: "gcc-9",
1818
cxx: "g++-9"
1919
}
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-
}
2820
- {
2921
name: "macOs-clang",
3022
os: macos-latest,
@@ -49,8 +41,11 @@ jobs:
4941

5042
- name: Download and Install Dependencies
5143
run: |
44+
python3 -m venv ${{ github.workspace }}/build_env
45+
source ${{ github.workspace }}/build_env/bin/activate
5246
pip3 install wheel setuptools numpy
53-
pip3 install conan==1.58.0
47+
pip3 install -r ${{ github.workspace }}/pagoda/requirements.txt
48+
5449
- name: Download and Install Dependencies (Ubuntu)
5550
if: ${{ contains(matrix.config.os, 'Ubuntu') }}
5651
run: |
@@ -62,23 +57,20 @@ jobs:
6257
CXX: ${{ matrix.config.cxx }}
6358
CONAN_SYSREQUIRES_MODE: "enabled"
6459
run: |
60+
source ${{ github.workspace }}/build_env/bin/activate
6561
${{ matrix.config.set_path }}
6662
pushd ${{ github.workspace }}/pagoda
6763
git submodule update --init --recursive
6864
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
65+
conan install --profile:build=${{ github.workspace}}/pagoda/${{ matrix.config.conan_profile }} --profile:host=${{ github.workspace}}/pagoda/${{ matrix.config.conan_profile }} -of ${{ github.workspace }}/build ${{ github.workspace }}/pagoda --build=missing
66+
cmake --preset conan-release
67+
cmake --build ${{ github.workspace }}/build -j 24
7168
7269
- name: Run tests
7370
run: |
7471
cd build
7572
ctest -C Release
7673
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-
8274
- name: Pack Build Results
8375
if: always()
8476
shell: cmake -P {0}
@@ -109,82 +101,3 @@ jobs:
109101
with:
110102
path: ./${{ matrix.config.name }}.tar.xz
111103
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

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
conan==2.6.0
2+
cmake==3.30.2
Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,40 @@
11
[settings]
22
arch=x86_64
3-
arch_build=x86_64
43
build_type=Release
54
compiler=apple-clang
65
compiler.libcxx=libc++
76
compiler.version=14.0
87
os=Macos
9-
os_build=Macos
108

119
[options]
12-
boost:without_atomic=True
13-
boost:without_chrono=False
14-
boost:without_container=True
15-
boost:without_context=True
16-
boost:without_contract=True
17-
boost:without_coroutine=True
18-
boost:without_date_time=True
19-
boost:without_exception=True
20-
boost:without_fiber=True
21-
boost:without_filesystem=False
22-
boost:without_graph=True
23-
boost:without_graph_parallel=True
24-
boost:without_iostreams=True
25-
boost:without_locale=True
26-
boost:without_log=True
27-
boost:without_math=True
28-
boost:without_mpi=True
29-
boost:without_nowide=True
30-
boost:without_program_options=False
31-
boost:without_python=True
32-
boost:without_random=True
33-
boost:without_regex=True
34-
boost:without_serialization=True
35-
boost:without_stacktrace=True
36-
boost:without_system=False
37-
boost:without_test=True
38-
boost:without_thread=True
39-
boost:without_timer=True
40-
boost:without_type_erasure=True
41-
boost:without_wave=True
10+
boost/*:without_atomic=True
11+
boost/*:without_chrono=False
12+
boost/*:without_container=True
13+
boost/*:without_context=True
14+
boost/*:without_contract=True
15+
boost/*:without_coroutine=True
16+
boost/*:without_date_time=True
17+
boost/*:without_exception=True
18+
boost/*:without_fiber=True
19+
boost/*:without_filesystem=False
20+
boost/*:without_graph=True
21+
boost/*:without_graph_parallel=True
22+
boost/*:without_iostreams=True
23+
boost/*:without_locale=True
24+
boost/*:without_log=True
25+
boost/*:without_math=True
26+
boost/*:without_mpi=True
27+
boost/*:without_nowide=True
28+
boost/*:without_program_options=False
29+
boost/*:without_python=True
30+
boost/*:without_random=True
31+
boost/*:without_regex=True
32+
boost/*:without_serialization=True
33+
boost/*:without_stacktrace=True
34+
boost/*:without_system=False
35+
boost/*:without_test=True
36+
boost/*:without_thread=True
37+
boost/*:without_timer=True
38+
boost/*:without_type_erasure=True
39+
boost/*:without_wave=True
4240

43-
[build_requires]
44-
[env]
Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,45 @@
11
[settings]
22
arch=x86_64
3-
arch_build=x86_64
43
build_type=Release
54
compiler=gcc
5+
compiler.cppstd=gnu17
66
compiler.libcxx=libstdc++11
7-
compiler.version=9
7+
compiler.version=14
88
os=Linux
9-
os_build=Linux
109

1110
[options]
12-
boost:without_atomic=True
13-
boost:without_chrono=False
14-
boost:without_container=True
15-
boost:without_context=True
16-
boost:without_contract=True
17-
boost:without_coroutine=True
18-
boost:without_date_time=True
19-
boost:without_exception=True
20-
boost:without_fiber=True
21-
boost:without_filesystem=False
22-
boost:without_graph=True
23-
boost:without_graph_parallel=True
24-
boost:without_iostreams=True
25-
boost:without_locale=True
26-
boost:without_log=True
27-
boost:without_math=True
28-
boost:without_mpi=True
29-
boost:without_nowide=True
30-
boost:without_program_options=False
31-
boost:without_python=True
32-
boost:without_random=True
33-
boost:without_regex=True
34-
boost:without_serialization=True
35-
boost:without_stacktrace=True
36-
boost:without_system=False
37-
boost:without_test=True
38-
boost:without_thread=True
39-
boost:without_timer=True
40-
boost:without_type_erasure=True
41-
boost:without_wave=True
42-
43-
[build_requires]
11+
boost/*:without_atomic=True
12+
boost/*:without_chrono=False
13+
boost/*:without_container=True
14+
boost/*:without_context=True
15+
boost/*:without_contract=True
16+
boost/*:without_coroutine=True
17+
boost/*:without_date_time=True
18+
boost/*:without_exception=True
19+
boost/*:without_fiber=True
20+
boost/*:without_filesystem=False
21+
boost/*:without_graph=True
22+
boost/*:without_graph_parallel=True
23+
boost/*:without_iostreams=True
24+
boost/*:without_locale=True
25+
boost/*:without_log=True
26+
boost/*:without_math=True
27+
boost/*:without_mpi=True
28+
boost/*:without_nowide=True
29+
boost/*:without_program_options=False
30+
boost/*:without_python=True
31+
boost/*:without_random=True
32+
boost/*:without_regex=True
33+
boost/*:without_serialization=True
34+
boost/*:without_stacktrace=True
35+
boost/*:without_system=False
36+
boost/*:without_test=True
37+
boost/*:without_thread=True
38+
boost/*:without_timer=True
39+
boost/*:without_type_erasure=True
40+
boost/*:without_wave=True
4441

4542
[conf]
4643
tools.system.package_manager:mode=install
44+
tools.system.package_manager:sudo=sudo
4745

48-
[env]
49-
CC=gcc-9
50-
CXX=g++-9

0 commit comments

Comments
 (0)