|
32 | 32 | strategy: |
33 | 33 | fail-fast: false |
34 | 34 | matrix: |
35 | | - # macos-12 is Intel runner, macos-14 is Apple Silicon |
| 35 | + # macos-13 is Intel runner, macos-14 is Apple Silicon |
36 | 36 | # https://github.com/actions/runner-images |
37 | | - os: [macos-12, macos-14] |
| 37 | + os: [macos-13, macos-14] |
38 | 38 | CONFIG: [ON, OFF] |
39 | 39 | env: |
40 | 40 | BUILD_SHARED_LIBS: ${{ matrix.CONFIG }} |
@@ -68,23 +68,16 @@ jobs: |
68 | 68 | run: | |
69 | 69 | brew install ccache pkg-config |
70 | 70 |
|
71 | | - if [[ ${{ runner.arch}} == "ARM64" ]]; then |
| 71 | + if [[ ${{ runner.arch }} == "ARM64" ]]; then |
72 | 72 | # Fix gfortran not found issue |
73 | 73 | ln -s $(which gfortran-13) /usr/local/bin/gfortran |
74 | | -
|
75 | | - # Default macos-14 image Xcode (version 15.0.1) linker causes build issues. |
76 | | - # Newer Xcode versions work, but embree recommends Apple clang <= 14 on |
77 | | - # arm64 to avoid possible "EXEC_BAD_INSTRUCTION" runtime exceptions: |
78 | | - # https://github.com/embree/embree/releases/tag/v4.3.1 |
79 | | - sudo xcode-select -switch /Applications/Xcode_14.3.1.app |
80 | 74 | fi |
81 | 75 |
|
82 | 76 | # Install libomp 11.1.0 from old brew bottle for x64 catalina (10.15) |
83 | 77 | # / arm64 big sur (11.0). Directly installing the Ruby formula will |
84 | 78 | # install for the current OS. |
85 | 79 | # https://github.com/microsoft/LightGBM/issues/4229 |
86 | 80 | if [[ ${{ runner.arch}} == "X64" ]]; then |
87 | | - brew unlink libomp |
88 | 81 | # x64 catalina (10.15) bottle |
89 | 82 | export LIBOMP_BOTTLE_HASH=45a5aa653bd45bd5ff5858580b1a4670c4b5a51ea29d68d45a53f72f56010e05 |
90 | 83 | else # ARM64 |
@@ -142,7 +135,7 @@ jobs: |
142 | 135 | permissions: |
143 | 136 | contents: write # Release upload |
144 | 137 | name: Fuse x64 and ARM64 viewer app |
145 | | - runs-on: [macos-12] |
| 138 | + runs-on: [macos-13] |
146 | 139 | needs: [MacOS] |
147 | 140 | steps: |
148 | 141 | - name: Checkout source code # for gh release upload |
@@ -191,9 +184,9 @@ jobs: |
191 | 184 | fail-fast: false |
192 | 185 | # https://github.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6 |
193 | 186 | matrix: |
194 | | - # macos-12 is Intel runner, macos-14 is Apple Silicon |
| 187 | + # macos-13 is Intel runner, macos-14 is Apple Silicon |
195 | 188 | # https://github.com/actions/runner-images |
196 | | - os: [macos-12, macos-14] |
| 189 | + os: [macos-13, macos-14] |
197 | 190 | python_version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
198 | 191 | is_main: |
199 | 192 | - ${{ github.ref == 'refs/heads/main' }} |
@@ -260,12 +253,10 @@ jobs: |
260 | 253 | # Fix macos-14 arm64 runner image issues, see comments in MacOS job. |
261 | 254 | if [[ ${{ runner.arch}} == "ARM64" ]]; then |
262 | 255 | ln -s $(which gfortran-13) /usr/local/bin/gfortran |
263 | | - sudo xcode-select -switch /Applications/Xcode_14.3.1.app |
264 | 256 | fi |
265 | 257 |
|
266 | 258 | # Install libomp 11.1.0. See comment above. |
267 | 259 | if [[ ${{ runner.arch}} == "X64" ]]; then |
268 | | - brew unlink libomp |
269 | 260 | # x64 catalina (10.15) bottle |
270 | 261 | export LIBOMP_BOTTLE_HASH=45a5aa653bd45bd5ff5858580b1a4670c4b5a51ea29d68d45a53f72f56010e05 |
271 | 262 | else # ARM64 |
@@ -308,7 +299,7 @@ jobs: |
308 | 299 | name: Fuse universal2 wheel |
309 | 300 | permissions: |
310 | 301 | contents: write # Release upload |
311 | | - runs-on: [macos-12] |
| 302 | + runs-on: [macos-13] |
312 | 303 | needs: [build-wheel] |
313 | 304 | strategy: |
314 | 305 | fail-fast: false |
@@ -379,7 +370,7 @@ jobs: |
379 | 370 | strategy: |
380 | 371 | fail-fast: false |
381 | 372 | matrix: |
382 | | - os: [macos-12, macos-14] |
| 373 | + os: [macos-13, macos-14] |
383 | 374 | python_version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
384 | 375 | is_main: |
385 | 376 | - ${{ github.ref == 'refs/heads/main' }} |
|
0 commit comments