Skip to content

Commit fe8304f

Browse files
authored
Merge pull request #6 from pro3d-space/main
Fix x64 osx build
2 parents 7f2f784 + 4330b4d commit fe8304f

2 files changed

Lines changed: 30 additions & 6 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
# os: [ubuntu-latest, windows-latest, macos-latest]
2525
# os: [ubuntu-latest, windows-latest]
26-
os: [macos-latest, ubuntu-latest, windows-latest]
26+
os: [macos-13, ubuntu-latest, windows-latest]
2727
build_type: [Release]
2828
# c_compiler: [gcc, clang, cl]
2929
c_compiler: [gcc, cl, clang]
@@ -53,10 +53,10 @@ jobs:
5353
# spice_dl_url: https://naif.jpl.nasa.gov/pub/naif/toolkit//C/MacM1_OSX_clang_64bit/packages/cspice.tar.Z
5454
# spice_zip_filename: cspice.tar.Z
5555
# spice_lib_filename: cspice.a
56-
- os: macos-latest
56+
- os: macos-13
5757
c_compiler: gcc
5858
cpp_compiler: g++
59-
# arch: arm64
59+
arch: x64
6060
spice_dl_url: https://naif.jpl.nasa.gov/pub/naif/toolkit//C/MacIntel_OSX_AppleC_64bit/packages/cspice.tar.Z
6161
spice_zip_filename: cspice.tar.Z
6262
spice_lib_filename: cspice.a
@@ -67,9 +67,9 @@ jobs:
6767
c_compiler: clang
6868
- os: ubuntu-latest
6969
c_compiler: cl
70-
- os: macos-latest
70+
- os: macos-13
7171
c_compiler: cl
72-
- os: macos-latest
72+
- os: macos-13
7373
c_compiler: clang
7474

7575
runs-on: ${{ matrix.os }}
@@ -93,7 +93,7 @@ jobs:
9393
- if: matrix.os == 'ubuntu-latest'
9494
run: tar -xf "${{ github.workspace }}/${{ matrix.spice_zip_filename }}" && rm "${{ github.workspace }}/${{ matrix.spice_zip_filename }}"
9595

96-
- if: matrix.os == 'macos-latest'
96+
- if: matrix.os == 'macos-13'
9797
run: tar -xf "${{ github.workspace }}/${{ matrix.spice_zip_filename }}" && rm "${{ github.workspace }}/${{ matrix.spice_zip_filename }}"
9898

9999
- name: Set reusable strings

CMakePresets.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@
4343
"value": "${sourceDir}/cspice/lib/cspice.a"
4444
}
4545
}
46+
},
47+
{
48+
"name": "osx-configure",
49+
"displayName": "osx Configure",
50+
"description": "Using compilers: C = /usr/bin/gcc, CXX = /usr/bin/g++",
51+
"binaryDir": "${sourceDir}/out/build/${presetName}",
52+
"cacheVariables": {
53+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
54+
"CMAKE_C_COMPILER": "/usr/bin/gcc",
55+
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
56+
"CMAKE_BUILD_TYPE": "Debug",
57+
"CSPICE_INCLUDE_DIR": {
58+
"type": "FILEPATH",
59+
"value": "${sourceDir}/cspice/include"
60+
},
61+
"CSPICE_LIBRARY_RELEASE": {
62+
"type": "FILEPATH",
63+
"value": "${sourceDir}/cspice/lib/cspice.a"
64+
}
65+
}
4666
}
4767
],
4868
"buildPresets": [
@@ -53,6 +73,10 @@
5373
{
5474
"name": "linux-build",
5575
"configurePreset": "linux-configure"
76+
},
77+
{
78+
"name": "osx-build",
79+
"configurePreset": "osx-configure"
5680
}
5781
]
5882
}

0 commit comments

Comments
 (0)