1
1
version : v1.0
2
2
name : Test on PR or create and upload wheels on tag.
3
- agent :
4
- machine :
5
- type : s1-prod-mac-m1
6
3
global_job_config :
7
4
secrets :
8
5
- name : vault_sem2_approle
9
6
env_vars :
10
7
- name : LIBRDKAFKA_VERSION
11
8
value : v1.9.2
9
+ prologue :
10
+ commands :
11
+ - checkout
12
+ - export HOME=$WORKSPACE
13
+ - cd $WORKSPACE/confluent-kafka-python
12
14
blocks :
13
15
- name : " Wheels: OSX x64"
14
- run :
15
- when : " tag =~ '.*'"
16
16
dependencies : []
17
17
task :
18
18
agent :
@@ -26,19 +26,15 @@ blocks:
26
26
jobs :
27
27
- name : Build
28
28
commands :
29
- - cd $SEM_WORKSPACE
30
- - export HOME=$SEM_WORKSPACE
31
- - checkout
32
- # needed on the self-hosted agent
33
- - if [ ! -d ./tools ]; then cd $SEM_WORKSPACE/confluent-kafka-python; fi
34
29
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
35
30
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
36
31
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz
37
32
- name : " Wheels: OSX arm64"
38
- run :
39
- when : " tag =~ '.*'"
40
33
dependencies : []
41
34
task :
35
+ agent :
36
+ machine :
37
+ type : s1-prod-macos-arm64
42
38
env_vars :
43
39
- name : OS_NAME
44
40
value : osx
@@ -49,11 +45,6 @@ blocks:
49
45
jobs :
50
46
- name : Build
51
47
commands :
52
- - cd $SEM_WORKSPACE
53
- - export HOME=$SEM_WORKSPACE
54
- - checkout
55
- # needed on the self-hosted agent
56
- - if [ ! -d ./tools ]; then cd $SEM_WORKSPACE/confluent-kafka-python; fi
57
48
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
58
49
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
59
50
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz
@@ -72,11 +63,6 @@ blocks:
72
63
jobs :
73
64
- name : Build
74
65
commands :
75
- - cd $SEM_WORKSPACE
76
- - export HOME=$SEM_WORKSPACE
77
- - checkout
78
- # needed on the self-hosted agent
79
- - if [ ! -d ./tools ]; then cd $SEM_WORKSPACE/confluent-kafka-python; fi
80
66
# use a virtualenv
81
67
- python3 -m venv _venv && source _venv/bin/activate
82
68
- pip install -r docs/requirements.txt
@@ -90,4 +76,4 @@ blocks:
90
76
- export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$PWD/$lib_dir"
91
77
# install confluent-kafka
92
78
- python setup.py build && python setup.py install
93
- - make docs
79
+ - make docs
0 commit comments