Skip to content

Commit b7803d9

Browse files
author
Diego Jesus
committed
Update pipeline to build with conan2
Also make it simpler for now
1 parent bc75398 commit b7803d9

File tree

1 file changed

+4
-95
lines changed

1 file changed

+4
-95
lines changed

.github/workflows/build.yaml

Lines changed: 4 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,
@@ -50,7 +42,7 @@ jobs:
5042
- name: Download and Install Dependencies
5143
run: |
5244
pip3 install wheel setuptools numpy
53-
pip3 install conan==1.58.0
45+
pip3 install conan
5446
- name: Download and Install Dependencies (Ubuntu)
5547
if: ${{ contains(matrix.config.os, 'Ubuntu') }}
5648
run: |
@@ -66,19 +58,15 @@ jobs:
6658
pushd ${{ github.workspace }}/pagoda
6759
git submodule update --init --recursive
6860
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
7164
7265
- name: Run tests
7366
run: |
7467
cd build
7568
ctest -C Release
7669
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-
8270
- name: Pack Build Results
8371
if: always()
8472
shell: cmake -P {0}
@@ -109,82 +97,3 @@ jobs:
10997
with:
11098
path: ./${{ matrix.config.name }}.tar.xz
11199
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

Comments
 (0)