Skip to content

Commit 78621e9

Browse files
committed
Include intel & arm architecture for macos
1 parent 2c91615 commit 78621e9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,32 @@ jobs:
103103
macos:
104104
needs: [check]
105105
runs-on: macos-latest
106+
strategy:
107+
matrix:
108+
os: [macos-13, macos-14]
106109
steps:
107110
- uses: actions/checkout@v2
108111
- uses: actions/setup-python@v2
109112
with:
110113
python-version: '3.10'
111-
architecture: x64
112114
- name: Install Rust toolchain
113115
uses: actions-rs/toolchain@v1
114116
with:
115117
profile: minimal
116118
toolchain: stable
117119
default: true
118120
- name: Build wheels - x86_64
121+
if: matrix.os == 'macos-13'
119122
uses: messense/maturin-action@v1
120123
with:
121124
target: x86_64
122125
args: --release --out dist
123-
- name: Install built wheel - x86_64
126+
- name: Build wheels - arm64
127+
uses: messense/maturin-action@v1
128+
with:
129+
target: aarch64-apple-darwin
130+
args: --release --out dist
131+
- name: Install built wheel
124132
run: |
125133
pip install gstools-core --no-index --find-links dist --force-reinstall --no-deps
126134
python -c "import gstools_core"

0 commit comments

Comments
 (0)