-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (46 loc) · 1.33 KB
/
macos-wheel-builder.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
name: macos-wheel-builder
on: [pull_request, push]
permissions:
contents: read # to fetch code (actions/checkout)
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
COMMIT_ID: ${{ github.sha }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
jobs:
macos-wheel-builder:
name: Build and test Python wheels (MacOS)
runs-on: macos-11
strategy:
fail-fast: false
matrix:
cibw_platform_id: [macosx_x86_64, macosx_arm64]
env:
CIBW_PLATFORM_ID: ${{ matrix.cibw_platform_id }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: macos_build
environment-file: ops/conda_env/macos_build.yml
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Display Conda env
run: |
conda info
conda list
- name: Build wheel
run: |
bash ops/build-macos.sh
- name: Test wheel
if: matrix.cibw_platform_id == 'macosx_x86_64'
run: |
bash ops/test-macos-python-wheel.sh