Skip to content

Commit 477bac4

Browse files
authored
use s1-prod-macos-arm64 build agent (confluentinc#1428)
* use s1-prod-macos-arm64 build agent * use $WORKSPACE instead of $SEM_WORKSPACE
1 parent 5936d0b commit 477bac4

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.semaphore/semaphore.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: v1.0
22
name: Test on PR or create and upload wheels on tag.
3-
agent:
4-
machine:
5-
type: s1-prod-mac-m1
63
global_job_config:
74
secrets:
85
- name: vault_sem2_approle
96
env_vars:
107
- name: LIBRDKAFKA_VERSION
118
value: v1.9.2
9+
prologue:
10+
commands:
11+
- checkout
12+
- export HOME=$WORKSPACE
13+
- cd $WORKSPACE/confluent-kafka-python
1214
blocks:
1315
- name: "Wheels: OSX x64"
14-
run:
15-
when: "tag =~ '.*'"
1616
dependencies: []
1717
task:
1818
agent:
@@ -26,19 +26,15 @@ blocks:
2626
jobs:
2727
- name: Build
2828
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
3429
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
3530
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
3631
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz
3732
- name: "Wheels: OSX arm64"
38-
run:
39-
when: "tag =~ '.*'"
4033
dependencies: []
4134
task:
35+
agent:
36+
machine:
37+
type: s1-prod-macos-arm64
4238
env_vars:
4339
- name: OS_NAME
4440
value: osx
@@ -49,11 +45,6 @@ blocks:
4945
jobs:
5046
- name: Build
5147
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
5748
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
5849
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
5950
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz
@@ -72,11 +63,6 @@ blocks:
7263
jobs:
7364
- name: Build
7465
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
8066
# use a virtualenv
8167
- python3 -m venv _venv && source _venv/bin/activate
8268
- pip install -r docs/requirements.txt
@@ -90,4 +76,4 @@ blocks:
9076
- export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$PWD/$lib_dir"
9177
# install confluent-kafka
9278
- python setup.py build && python setup.py install
93-
- make docs
79+
- make docs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy