@@ -102,88 +102,90 @@ jobs:
102102
103103 build_linux :
104104 runs-on : ubuntu-latest
105+ container : stabletec/build-core:debian-11
105106 steps :
106107 - uses : actions/checkout@v4
107108 - name : Build HiGHS
108109 run : |
109- cmake -E make_directory ${{runner.workspace}} /build
110- cmake -E make_directory ${{runner.workspace}} /nugets
111- cmake -E make_directory ${{runner.workspace}} /test_nuget
110+ cmake -E make_directory /__w/HiGHS/HiGHS /build
111+ cmake -E make_directory /__w/HiGHS/HiGHS /nugets
112+ cmake -E make_directory /__w/HiGHS/HiGHS /test_nuget
112113
113114 - name : Configure CMake
114- working-directory : ${{runner.workspace}} /build
115+ working-directory : /__w/HiGHS/HiGHS /build
115116 run : cmake $GITHUB_WORKSPACE -DCSHARP=ON -DBUILD_DOTNET=ON
116117
117118 - name : Build
118- working-directory : ${{runner.workspace}} /build
119+ working-directory : /__w/HiGHS/HiGHS /build
119120 run : cmake --build . --config Release --parallel
120121
121122 - uses : actions/setup-dotnet@v4
122123 with :
123124 dotnet-version : ' 6.0.x'
124125
125126 - name : Dotnet pack
126- working-directory : ${{runner.workspace}} /build/dotnet/Highs.Native
127+ working-directory : /__w/HiGHS/HiGHS /build/dotnet/Highs.Native
127128 run : dotnet pack -c Release /p:Version=1.9.0
128129
129130 - name : Add local feed
130- run : dotnet nuget add source ${{runner.workspace}} /nugets
131+ run : dotnet nuget add source /__w/HiGHS/HiGHS /nugets
131132
132133 - name : Dotnet push to local feed
133- working-directory : ${{runner.workspace}} /build/dotnet/Highs.Native
134- run : dotnet nuget push ./bin/Release/*.nupkg -s ${{runner.workspace}} /nugets
134+ working-directory : /__w/HiGHS/HiGHS /build/dotnet/Highs.Native
135+ run : dotnet nuget push ./bin/Release/*.nupkg -s /__w/HiGHS/HiGHS /nugets
135136
136137 - name : Create new project and test
137138 shell : bash
138- working-directory : ${{runner.workspace}} /test_nuget
139+ working-directory : /__w/HiGHS/HiGHS /test_nuget
139140 run : |
140141 dotnet new console
141142 rm Program.cs
142143 cp $GITHUB_WORKSPACE/examples/call_highs_from_csharp.cs .
143- dotnet add package Highs.Native -s ${{runner.workspace}} /nugets
144+ dotnet add package Highs.Native -s /__w/HiGHS/HiGHS /nugets
144145 dotnet run
145146
146147 build_linux_8 :
147148 runs-on : ubuntu-latest
149+ container : stabletec/build-core:debian-11
148150 steps :
149151 - uses : actions/checkout@v4
150152 - name : Build HiGHS
151153 run : |
152- cmake -E make_directory ${{runner.workspace}} /build
153- cmake -E make_directory ${{runner.workspace}} /nugets
154- cmake -E make_directory ${{runner.workspace}} /test_nuget
154+ cmake -E make_directory /__w/HiGHS/HiGHS /build
155+ cmake -E make_directory /__w/HiGHS/HiGHS /nugets
156+ cmake -E make_directory /__w/HiGHS/HiGHS /test_nuget
155157
156158 - name : Configure CMake
157- working-directory : ${{runner.workspace}} /build
159+ working-directory : /__w/HiGHS/HiGHS /build
158160 run : cmake $GITHUB_WORKSPACE -DCSHARP=ON -DBUILD_DOTNET=ON
159161
160162 - name : Build
161- working-directory : ${{runner.workspace}} /build
163+ working-directory : /__w/HiGHS/HiGHS /build
162164 run : cmake --build . --config Release --parallel
163165
164166 - uses : actions/setup-dotnet@v4
165167 with :
166168 dotnet-version : ' 8.0.x'
167169
168170 - name : Dotnet pack
169- working-directory : ${{runner.workspace}} /build/dotnet/Highs.Native
171+ working-directory : /__w/HiGHS/HiGHS /build/dotnet/Highs.Native
170172 run : dotnet pack -c Release /p:Version=1.9.0
171173
172174 - name : Add local feed
173- run : dotnet nuget add source ${{runner.workspace}} /nugets
175+ run : dotnet nuget add source /__w/HiGHS/HiGHS /nugets
174176
175177 - name : Dotnet push to local feed
176- working-directory : ${{runner.workspace}} /build/dotnet/Highs.Native
177- run : dotnet nuget push ./bin/Release/*.nupkg -s ${{runner.workspace}} /nugets
178+ working-directory : /__w/HiGHS/HiGHS /build/dotnet/Highs.Native
179+ run : dotnet nuget push ./bin/Release/*.nupkg -s /__w/HiGHS/HiGHS /nugets
178180
179181 - name : Create new project and test
180182 shell : bash
181- working-directory : ${{runner.workspace}} /test_nuget
183+ working-directory : /__w/HiGHS/HiGHS /test_nuget
182184 run : |
183185 dotnet new console
184186 rm Program.cs
185187 cp $GITHUB_WORKSPACE/examples/call_highs_from_csharp.cs .
186- dotnet add package Highs.Native -s ${{runner.workspace}} /nugets
188+ dotnet add package Highs.Native -s /__w/HiGHS/HiGHS /nugets
187189 dotnet run
188190
189191 build_windows :
0 commit comments