This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
73 lines (64 loc) · 2.2 KB
/
custom_builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Custom build
# This one is disabled by default and can be enabled/customized based on specific needs:
# create a branch, customize this for your branch (i.e. on.push.branches member) and push
# remember: our valhalla fork will have
on:
push:
branches:
- "cb-custom"
paths-ignore:
- "*.md"
- "*.sh"
- "*.ipynb"
- "*.*json"
jobs:
build_wheels:
name: Wheels - cp*, ${{ matrix.platform }}
runs-on: ${{ matrix.image }}
strategy:
matrix:
# TODO: re-enable other OSs
include:
- image: ubuntu-latest
platform: linux
cxx: "g++-9"
# - image: windows-latest
# platform: windows
# cxx: 'Visual Studio'
# - macos-latest
steps:
- uses: actions/checkout@v4
- name: Configure Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
# keep in-sync with the other yaml
- name: Cache Conan
id: cache-conan
uses: actions/cache@v4
if: steps.cache-conan.outputs.cache-hit != 'true'
with:
path: |
${{ github.workspace }}/conan_data
${{ github.workspace }}/conan_build
key: conan-${{ matrix.platform }}-${{ hashFiles('conanfile.txt') }}
restore-keys: |
conan-${{ matrix.platform }}-
# - name: Install Conan (Windows)
# if: matrix.platform == 'windows' # && steps.cache-conan.outputs.cache-hit != 'true'
# run: |
# pip install pip --upgrade
# pip install conan
# conan profile new default --detect
# conan profile update "settings.compiler=Visual Studio" default
# conan profile update "settings.compiler.version=16" default
# conan config set "storage.path=$env:GITHUB_WORKSPACE/conan_data"
# conan install --install-folder conan_build --remote conancenter .
- uses: pypa/[email protected]
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
CIBW_BUILD: cp310* cp39* cp38*
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl