Skip to content

Commit 65ae311

Browse files
authored
Update apple_m.yml
1 parent beb4ab7 commit 65ae311

1 file changed

Lines changed: 48 additions & 4 deletions

File tree

.github/workflows/apple_m.yml

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ jobs:
156156
;;
157157
esac
158158
159-
160-
xbuild:
159+
xbuild-x86_64:
161160
runs-on: macos-26
162161

163162
strategy:
@@ -190,7 +189,7 @@ jobs:
190189
exit 1
191190
fi
192191
193-
- name: Crossbuild OpenBLAS
192+
- name: Crossbuild OpenBLAS to x86_64
194193
run: |
195194
#export PATH=/opt/homebrew/opt/llvm/bin:$PATH
196195
#export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
@@ -208,4 +207,49 @@ jobs:
208207
export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode_26.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk -arch x86_64"
209208
make TARGET=CORE2 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 RANLIB="ls -l"
210209
211-
210+
xbuild-ios:
211+
runs-on: macos-26
212+
213+
strategy:
214+
fail-fast: false
215+
216+
steps:
217+
- name: Checkout repository
218+
uses: actions/checkout@v6
219+
220+
- name: Print system information
221+
run: |
222+
if [ "$RUNNER_OS" == "macOS" ]; then
223+
sysctl -a | grep machdep.cpu
224+
else
225+
echo "::error::$RUNNER_OS not supported"
226+
exit 1
227+
fi
228+
229+
- name: Install Dependencies
230+
run: |
231+
if [ "$RUNNER_OS" == "Linux" ]; then
232+
sudo apt-get install -y gfortran cmake ccache libtinfo5
233+
elif [ "$RUNNER_OS" == "macOS" ]; then
234+
# It looks like "gfortran" isn't working correctly unless "gcc" is re-installed.
235+
brew reinstall gcc
236+
brew install coreutils ccache
237+
brew install llvm
238+
else
239+
echo "::error::$RUNNER_OS not supported"
240+
exit 1
241+
fi
242+
243+
- name: Crossbuild to iOS
244+
run: |
245+
#brew install llvm
246+
#export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
247+
# export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
248+
export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
249+
export CC=/Applications/Xcode_26.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
250+
export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode_26.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk -arch arm64 -miphoneos-version-min=10.0"
251+
xcrun --sdk iphoneos --show-sdk-path
252+
ls -l /Applications
253+
make TARGET=ARMV8 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 CROSS=1
254+
255+

0 commit comments

Comments
 (0)