@@ -22,19 +22,17 @@ jobs:
22
22
include : [
23
23
{ os: windows-2019, arch: x86_64, msystem: mingw64, debug: true, suffix: "-dbg" },
24
24
{ os: windows-2019, arch: x86_64, msystem: mingw64, debug: false, suffix: "" },
25
- { os: windows-2019, arch: i686, msystem: mingw32, debug: true, suffix: "-dbg" },
26
- { os: windows-2019, arch: i686, msystem: mingw32, debug: false, suffix: "" },
27
25
{ os: windows-2019, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" },
28
26
{ os: windows-2022, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" },
29
27
{ os: windows-2022, arch: msvs, msystem: mingw64, debug: false, suffix: "" },
30
28
]
31
29
steps :
32
30
- name : Checkout source
33
- uses : actions/checkout@v3
31
+ uses : actions/checkout@v4
34
32
with :
35
33
path : ${{ github.event.repository.name }}
36
34
- name : Checkout coinbrew
37
- uses : actions/checkout@v3
35
+ uses : actions/checkout@v4
38
36
with :
39
37
repository : coin-or/coinbrew
40
38
path : coinbrew
43
41
uses : ilammy/msvc-dev-cmd@v1
44
42
- name : Set up for msvs
45
43
if : ${{ matrix.arch == 'msvs' }}
46
- uses : microsoft/setup-msbuild@v1.1
44
+ uses : microsoft/setup-msbuild@v2
47
45
- name : Set correct host flag and install requirements
48
46
if : ${{ matrix.arch != 'msvc' && matrix.arch != 'msvs' }}
49
47
run : |
@@ -91,13 +89,10 @@ jobs:
91
89
copy ${{ github.event.repository.name }}\LICENSE.* dist\.
92
90
mkdir dist\bin
93
91
copy ${{ github.event.repository.name }}\MSVisualStudio\v17\x64\Release\*.exe dist\bin\.
94
- mkdir dist\include\coin
95
- copy ${{ github.event.repository.name }}\src\*.h dist\include\coin\.
96
- copy ${{ github.event.repository.name }}\src\*.hpp dist\include\coin\.
97
- mkdir dist\lib
98
- copy ${{ github.event.repository.name }}\MSVisualStudio\v17\x64\Release\*.lib dist\lib\.
99
- mkdir dist\share\coin\Data
100
- xcopy Data dist\share\coin\Data\. /s /e
92
+ mkdir dist\share
93
+ if exist .\Data\Sample xcopy .\Data\Sample dist\share\coin-or-sample /i
94
+ if exist .\Data\Netlib xcopy .\Data\Netlib dist\share\coin-or-netlib /i
95
+ if exist .\Data\Miplib3 xcopy .\Data\Miplib3 dist\share\coin-or-miplib3 /i
101
96
- name : Build project using coinbrew
102
97
if : ${{ matrix.arch != 'msvs' }}
103
98
run : |
@@ -115,7 +110,7 @@ jobs:
115
110
cp ${{ github.event.repository.name }}/LICENSE dist/
116
111
shell : msys2 {0}
117
112
- name : Upload failed build directory
118
- uses : actions/upload-artifact@v3
113
+ uses : actions/upload-artifact@v4
119
114
if : failure()
120
115
with :
121
116
name : ${{ matrix.os}}-{{ matrix.arch }}-debug=${{ matrix.debug }}-failedbuild
@@ -133,9 +128,9 @@ jobs:
133
128
if : ${{ matrix.arch != 'msvc' }}
134
129
- name : Upload artifact
135
130
if : ${{ github.event_name == 'pull_request'}}
136
- uses : actions/upload-artifact@v3
131
+ uses : actions/upload-artifact@v4
137
132
with :
138
- name : ${{ github.event.repository.name }}-${{ github.head_ref }}-${{ env.package_suffix }}
133
+ name : ${{ github.event.repository.name }}-${{ env.package_suffix }}
139
134
path : dist
140
135
if-no-files-found : error
141
136
- name : Zip up dist contents for release
0 commit comments