@@ -8,12 +8,9 @@ concurrency:
88 cancel-in-progress : true
99
1010jobs :
11- # macos 13 is Intel
12- build_macos_13 :
13- runs-on : macos-13
14- # strategy:
15- # matrix:
16- # python: [3.11]
11+ # Build macos intel
12+ build_macos_intel :
13+ runs-on : macos-15-intel
1714 steps :
1815 - uses : actions/checkout@v4
1916 - name : Build HiGHS
@@ -32,10 +29,10 @@ jobs:
3229 with :
3330 name : macos-x64
3431 path : ${{runner.workspace}}/build/dotnet/Highs.Native/runtimes
35-
36- # macos 14 is M1
37- build_macos_14 :
38- runs-on : macos-14
32+
33+ # Build macos arm64
34+ build_macos_arm :
35+ runs-on : macos-14 # macos-14 is arm64
3936 steps :
4037 - uses : actions/checkout@v4
4138 - name : Build HiGHS
@@ -55,14 +52,14 @@ jobs:
5552 name : macos-arm64
5653 path : ${{runner.workspace}}/build/dotnet/Highs.Native/runtimes
5754
58- # Build windows 32 and linux
55+ # Build windows 32 and linux
5956 build_windows_32 :
6057 runs-on : windows-latest
6158 steps :
6259 - uses : actions/checkout@v4
6360 - name : Build HiGHS
6461 run : |
65- cmake -E make_directory ${{runner.workspace}}/build32
62+ cmake -E make_directory ${{runner.workspace}}/build32
6663
6764 - name : Configure CMake win32
6865 shell : bash
@@ -127,7 +124,7 @@ jobs:
127124
128125 build_windows :
129126 runs-on : windows-latest
130- needs : [build_macos_13, build_macos_14 , build_windows_32, build_linux, build_linux_arm64]
127+ needs : [build_macos_intel, build_macos_arm , build_windows_32, build_linux, build_linux_arm64]
131128 steps :
132129 - uses : actions/checkout@v4
133130 - name : Build HiGHS Windows native
@@ -143,10 +140,10 @@ jobs:
143140 working-directory : ${{runner.workspace}}/build
144141 shell : bash
145142 run : cmake --build . --config Release --parallel
146-
143+
147144 - name : Display structure of downloaded files
148145 run : |
149- pwd
146+ pwd
150147 ls -R ${{runner.workspace}}/build/dotnet/Highs.Native/runtimes
151148
152149 - name : Download runtimes macos-x64
@@ -188,7 +185,7 @@ jobs:
188185
189186 - name : Dotnet pack
190187 working-directory : ${{runner.workspace}}/build/dotnet/Highs.Native
191- run : dotnet pack -c Release /p:Version=1.10 .0
188+ run : dotnet pack -c Release /p:Version=1.12 .0
192189
193190 - uses : actions/upload-artifact@v4
194191 with :
@@ -202,7 +199,7 @@ jobs:
202199 name : nuget
203200
204201 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
205- steps :
202+ steps :
206203 - uses : actions/checkout@v4
207204 - uses : actions/setup-dotnet@v4
208205
@@ -212,6 +209,6 @@ jobs:
212209 name : nuget
213210
214211 - name : Dotnet push
215- run : dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
212+ run : dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
216213 # env:
217214 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments