Skip to content

Commit 8af816b

Browse files
committed
conan config
1 parent a85cd30 commit 8af816b

File tree

5 files changed

+36
-9
lines changed

5 files changed

+36
-9
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[settings]
2+
arch=x86_64
3+
build_type=Release
4+
compiler=apple-clang
5+
compiler.version=14
6+
compiler.cppstd=17
7+
compiler.libcxx=libc++
8+
os=Macos
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[settings]
2+
arch=x86_64
3+
build_type=Release
4+
compiler=clang
5+
compiler.version=16
6+
compiler.cppstd=17
7+
compiler.libcxx=libstdc++11
8+
os=Linux
9+
10+
[conf]
11+
tools.build:compiler_executables={'c': 'clang-16', 'cpp': 'clang++-16'}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[settings]
2+
arch=x86_64
3+
build_type=Release
4+
compiler=msvc
5+
compiler.version=193
6+
compiler.cppstd=17
7+
compiler.runtime=dynamic
8+
os=Windows

.github/workflows/pip.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
platform: [windows-latest, macos-13, ubuntu-latest]
14+
os: [ubuntu-24.04, windows-2022, macos-14]
1515
python-version: ["3.7", "3.11"]
16-
runs-on: ${{ matrix.platform }}
16+
runs-on: ${{ matrix.os }}
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Add requirements
2323
run: python -m pip install --upgrade pip wheel setuptools conan
24-
- name: Conan detect profile
25-
run: conan profile detect
24+
- name: Install conan config
25+
run: conan config install .github/config/${{ matrix.os }}/conan
2626
- name: Build and install
2727
run: pip install --verbose .[test]
2828
# TODO

.github/workflows/wheels.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build_sdist:
1414
name: Build SDist
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Build SDist
@@ -30,16 +30,16 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
os: [ubuntu-latest, windows-latest, macos-13]
33+
os: [ubuntu-24.04, windows-2022, macos-14]
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-python@v5
3737
with:
3838
python-version: "3.x"
3939
- name: Add requirements
4040
run: python -m pip install --upgrade pip conan
41-
- name: Conan detect profile
42-
run: conan profile detect
41+
- name: Install conan config
42+
run: conan config install .github/config/${{ matrix.os }}/conan
4343
- uses: pypa/cibuildwheel@v2.17
4444
env:
4545
CIBW_ARCHS_MACOS: auto universal2
@@ -55,7 +55,7 @@ jobs:
5555
upload_all:
5656
name: Upload if release
5757
needs: [build_wheels, build_sdist]
58-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-24.04
5959
if: github.event_name == 'release' && github.event.action == 'published'
6060
steps:
6161
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)