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
79 lines (69 loc) · 2.43 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
74
75
76
77
78
79
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-try-custom-build"
paths-ignore:
- "*.md"
- "*.sh"
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
# - image: macos-latest
# platform: macos
#- image: windows-latest
# platform: windows
steps:
- uses: actions/checkout@v2
- name: Configure Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
# keep in-sync with the other yaml
- name: Cache Conan (MacOS)
id: cache-conan
uses: actions/cache@v2
if: matrix.platform == 'macos'
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 (MacOS)
if: matrix.platform == 'macos' && steps.cache-conan.outputs.cache-hit != 'true'
run: |
pip install pip --upgrade
pip install conan
conan profile new default --detect
conan config set "storage.path=${{ github.workspace }}/conan_data"
conan install --install-folder ${{ github.workspace }}/conan_build --remote conancenter .
- name: Install Conan (Windows)
if: matrix.platform == 'windows'
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.9
CIBW_BUILD: cp39* cp310*
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl