@@ -73,42 +73,47 @@ jobs:
7373 # name: wheels
7474 # path: dist
7575
76- # macos:
77- # runs-on: macos-latest
78- # strategy:
79- # matrix:
80- # target: [x86_64, aarch64]
81- # steps:
82- # - uses: actions/checkout@v3
83- # - uses: actions/setup-python@v4
84- # with:
85- # python-version: '3.10'
86- # - name: Build wheels
87- # uses: PyO3/maturin-action@v1
88- # with:
89- # target: ${{ matrix.target }}
90- # args: --release --out dist --find-interpreter
91- # sccache: 'true'
92- # - name: Upload wheels
93- # uses: actions/upload-artifact@v3
94- # with:
95- # name: wheels
96- # path: dist
76+ macos :
77+ runs-on : macos-latest
78+ strategy :
79+ matrix :
80+ target : [x86_64, aarch64]
81+ steps :
82+ - uses : actions/checkout@v3
83+ - uses : actions/setup-python@v4
84+ with :
85+ python-version : ' 3.10'
86+ cache : " pip"
87+ - run : pip install -r requirements.txt
88+ - name : Setup QEMU
89+ uses : docker/setup-qemu-action@v1
90+ if : ${{ matrix.target == 'aarch64' }}
91+ - name : Build wheels
92+ uses : PyO3/maturin-action@v1
93+ with :
94+ target : ${{ matrix.target }}
95+ args : --release --out dist --find-interpreter
96+ sccache : ' true'
97+ - name : Upload wheels
98+ uses : actions/upload-artifact@v3
99+ with :
100+ name : wheels
101+ path : dist
97102
98- # sdist:
99- # runs-on: ubuntu-latest
100- # steps:
101- # - uses: actions/checkout@v3
102- # - name: Build sdist
103- # uses: PyO3/maturin-action@v1
104- # with:
105- # command: sdist
106- # args: --out dist
107- # - name: Upload sdist
108- # uses: actions/upload-artifact@v3
109- # with:
110- # name: wheels
111- # path: dist
103+ sdist :
104+ runs-on : ubuntu-latest
105+ steps :
106+ - uses : actions/checkout@v3
107+ - name : Build sdist
108+ uses : PyO3/maturin-action@v1
109+ with :
110+ command : sdist
111+ args : --out dist
112+ - name : Upload sdist
113+ uses : actions/upload-artifact@v3
114+ with :
115+ name : wheels
116+ path : dist
112117
113118 # release:
114119 # name: Release
0 commit comments