File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,24 @@ jobs:
154
154
with :
155
155
name : mpy-cross-macos-catalina
156
156
path : mpy-cross/mpy-cross
157
+ - name : Select SDK for M1 build
158
+ run : sudo xcode-select -switch /Applications/Xcode_12.3.app
159
+ - name : Build mpy-cross (arm64)
160
+ run : make -C mpy-cross -j2 -f Makefile.m1 V=2
161
+ - uses : actions/upload-artifact@v2
162
+ with :
163
+ name : mpy-cross-macos-bigsur-arm64
164
+ path : mpy-cross/mpy-cross-arm64
165
+ - name : Make universal binary
166
+ run : lipo -create -output mpy-cross-macos-universal mpy-cross/mpy-cross mpy-cross/mpy-cross-arm64
167
+ - uses : actions/upload-artifact@v2
168
+ with :
169
+ name : mpy-cross-macos-universal
170
+ path : mpy-cross-macos-universal
157
171
- name : Upload mpy-cross build to S3
158
172
run : |
173
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-universal-${{ env.CP_VERSION }} --no-progress --region us-east-1
174
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-bigsur-${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
159
175
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-catalina-${{ env.CP_VERSION }} --no-progress --region us-east-1
160
176
env :
161
177
AWS_PAGER : ' '
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ PROG=mpy-cross-arm64
6
+ BUILD=build-arm64
7
+
8
+ include mpy-cross.mk
9
+ # Because mpy-cross.mk unconditionally overwrites CC for Darwin, we must set it BELOW the inclusion
10
+ CC := $(shell xcrun --sdk macosx11.1 --find clang) -isysroot $(shell xcrun --sdk macosx11.1 --show-sdk-path) -target arm64-apple-macos11 -DMICROPY_NLR_SETJMP=1
11
+ $(info pt2 CC=$(CC))
You can’t perform that action at this time.
0 commit comments