|
24 | 24 | - all |
25 | 25 | - linuxX64 |
26 | 26 | - macosArm64 |
27 | | - - macosX64 |
28 | 27 | - mingwX64 |
29 | 28 | - androidArm64 |
30 | 29 |
|
@@ -153,67 +152,6 @@ jobs: |
153 | 152 | build/cmake-build/openblas-install/lib/libopenblas.a |
154 | 153 | retention-days: 90 |
155 | 154 |
|
156 | | - # ── macOS x86_64 ───────────────────────────────────────────── |
157 | | - build-macosX64: |
158 | | - name: macOS x64 |
159 | | - if: >- |
160 | | - github.event_name != 'workflow_dispatch' || |
161 | | - github.event.inputs.platform == 'all' || |
162 | | - github.event.inputs.platform == 'macosX64' |
163 | | - runs-on: macos-26-intel |
164 | | - |
165 | | - steps: |
166 | | - - name: Checkout |
167 | | - uses: actions/checkout@v6 |
168 | | - |
169 | | - - name: Install build dependencies |
170 | | - run: brew install gcc cmake |
171 | | - |
172 | | - - name: Setup JDK 21 |
173 | | - uses: actions/setup-java@v5 |
174 | | - with: |
175 | | - distribution: temurin |
176 | | - java-version: '21' |
177 | | - |
178 | | - - name: Detect Homebrew GCC |
179 | | - run: | |
180 | | - BREW_GCC_PREFIX=$(brew --prefix gcc) |
181 | | - GCC_VER=$(ls "$BREW_GCC_PREFIX/bin/" | grep -oE '^gcc-[0-9]+$' | sort -t- -k2 -n | tail -1 | cut -d- -f2) |
182 | | - echo "CC=$BREW_GCC_PREFIX/bin/gcc-$GCC_VER" >> "$GITHUB_ENV" |
183 | | - echo "CXX=$BREW_GCC_PREFIX/bin/g++-$GCC_VER" >> "$GITHUB_ENV" |
184 | | - echo "$BREW_GCC_PREFIX/bin" >> "$GITHUB_PATH" |
185 | | -
|
186 | | - - name: Cache OpenBLAS build |
187 | | - uses: actions/cache@v5 |
188 | | - with: |
189 | | - path: build/cmake-build/openblas* |
190 | | - key: openblas-macosX64-${{ hashFiles('multik-openblas/multik_jni/CMakeLists.txt') }} |
191 | | - restore-keys: | |
192 | | - openblas-macosX64- |
193 | | -
|
194 | | - - name: Configure CMake |
195 | | - run: | |
196 | | - cmake \ |
197 | | - -DCMAKE_BUILD_TYPE=Release \ |
198 | | - -DCMAKE_C_COMPILER="$CC" \ |
199 | | - -DCMAKE_CXX_COMPILER="$CXX" \ |
200 | | - -DTARGET_OS=macosX64 \ |
201 | | - -S multik-openblas/multik_jni \ |
202 | | - -B build/cmake-build |
203 | | -
|
204 | | - - name: Build native library |
205 | | - run: cmake --build build/cmake-build --target multik_jni-macosX64 -- -j "$(sysctl -n hw.ncpu)" |
206 | | - |
207 | | - - name: Upload artifact |
208 | | - uses: actions/upload-artifact@v7 |
209 | | - with: |
210 | | - name: native-macosX64 |
211 | | - path: | |
212 | | - build/cmake-build/libmultik_jni-* |
213 | | - build/cmake-build/openblas-install/include/ |
214 | | - build/cmake-build/openblas-install/lib/libopenblas.a |
215 | | - retention-days: 90 |
216 | | - |
217 | 155 | # ── Windows x86_64 (MSYS2 MinGW) ──────────────────────────── |
218 | 156 | build-mingwX64: |
219 | 157 | name: Windows x64 (MinGW) |
|
0 commit comments