5
5
tags :
6
6
- ' v*'
7
7
8
- env :
9
- XCODE_VERSION : 11.5
10
- DOTNET_VERSION : 3.1.200
11
-
12
8
jobs :
13
9
create_releases :
14
10
name : create-releases
@@ -49,12 +45,24 @@ jobs:
49
45
name : upload-object-win
50
46
needs : create_releases
51
47
runs-on : windows-2019
48
+ strategy :
49
+ matrix :
50
+ dotnet_target : [3.1, 5.0]
51
+ include :
52
+ - dotnet_target : 3.1
53
+ dotnet_version : 3.1.407
54
+ framework : netstandard2.1
55
+ script_suffix : _core3
56
+ - dotnet_target : 5.0
57
+ dotnet_version : 5.0.201
58
+ framework : net5.0
59
+ script_suffix :
52
60
53
61
steps :
54
62
- name : setup dotnet
55
63
uses : actions/setup-dotnet@v1
56
64
with :
57
- dotnet-version : ${{ env.DOTNET_VERSION }}
65
+ dotnet-version : ${{ matrix.dotnet_version }}
58
66
- name : checkout
59
67
uses : actions/checkout@v2
60
68
- name : output url
@@ -71,14 +79,14 @@ jobs:
71
79
shell : bash
72
80
- name : cmake-build
73
81
run : |
74
- .\tools\build_core3 .bat
75
- .\tools\test_core3 .bat
82
+ .\tools\build${{matrix.script_suffix}} .bat
83
+ .\tools\test${{matrix.script_suffix}} .bat
76
84
timeout-minutes : 20
77
85
- name : cmake-install
78
86
shell : cmd
79
87
run : |
80
88
mkdir dist
81
- COPY /Y /B dotnet_project\CfdCsharpProject\bin\Release\netstandard2.1 \cfdcs.* dist
89
+ COPY /Y /B dotnet_project\CfdCsharpProject\bin\Release\${{matrix.framework}} \cfdcs.* dist
82
90
COPY /Y /B build\Release\* dist
83
91
- name : create archive file
84
92
run : |
96
104
with :
97
105
upload_url : ${{ steps.get_url.outputs.upload_url }}
98
106
asset_path : ./cfd.zip
99
- asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-win-dotnet${{env.DOTNET_VERSION }}-msvc2019-x86_64.zip
107
+ asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-win-dotnet${{matrix.dotnet_version }}-msvc2019-x86_64.zip
100
108
asset_content_type : application/zip
101
109
102
110
upload-object-ubuntu :
@@ -106,28 +114,38 @@ jobs:
106
114
strategy :
107
115
matrix :
108
116
os : [ubuntu-18.04, ubuntu-20.04]
117
+ dotnet_target : [3.1, 5.0]
118
+ include :
119
+ - dotnet_target : 3.1
120
+ dotnet_version : 3.1.407
121
+ framework : netstandard2.1
122
+ script_suffix : _core3
123
+ - dotnet_target : 5.0
124
+ dotnet_version : 5.0.201
125
+ framework : net5.0
126
+ script_suffix :
109
127
110
128
steps :
111
129
- name : setup dotnet
112
130
uses : actions/setup-dotnet@v1
113
131
with :
114
- dotnet-version : ${{ env.DOTNET_VERSION }}
132
+ dotnet-version : ${{ matrix.dotnet_version }}
115
133
- name : checkout
116
134
uses : actions/checkout@v1
117
135
- name : Get the version
118
136
id : get_version
119
137
run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
120
138
- name : cmake-build
121
139
run : |
122
- ./tools/build_core3 .sh
140
+ ./tools/build${{matrix.script_suffix}} .sh
123
141
- name : test
124
142
run : |
125
- ./tools/test_core3 .sh
143
+ ./tools/test${{matrix.script_suffix}} .sh
126
144
- name : create archive file
127
145
run : |
128
146
mkdir dist
129
147
cp -rp build/Release/* dist
130
- cp -rp dotnet_project/CfdCsharpProject/bin/Release/netstandard2.1 /cfdcs.* dist
148
+ cp -rp dotnet_project/CfdCsharpProject/bin/Release/${{matrix.framework}} /cfdcs.* dist
131
149
cd dist
132
150
zip -r cfd.zip .
133
151
echo "---- dump zip file ----"
@@ -142,39 +160,55 @@ jobs:
142
160
with :
143
161
upload_url : ${{ steps.get_url.outputs.upload_url }}
144
162
asset_path : ./dist/cfd.zip
145
- asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}-dotnet${{env.DOTNET_VERSION }}-gcc-x86_64.zip
163
+ asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}-dotnet${{matrix.dotnet_version }}-gcc-x86_64.zip
146
164
asset_content_type : application/zip
147
165
148
166
upload-object-macos :
149
167
name : upload-object-macos
150
168
needs : create_releases
151
169
runs-on : macos-10.15
170
+ strategy :
171
+ matrix :
172
+ xcode_version : [11.7, 12.4]
173
+ dotnet_target : [3.1, 5.0]
174
+ exclude :
175
+ - xcode_version : 12.4
176
+ dotnet_target : 3.1
177
+ include :
178
+ - dotnet_target : 3.1
179
+ dotnet_version : 3.1.407
180
+ framework : netstandard2.1
181
+ script_suffix : _core3
182
+ - dotnet_target : 5.0
183
+ dotnet_version : 5.0.201
184
+ framework : net5.0
185
+ script_suffix :
152
186
153
187
steps :
154
188
- name : setup dotnet
155
189
uses : actions/setup-dotnet@v1
156
190
with :
157
- dotnet-version : ${{ env.DOTNET_VERSION }}
191
+ dotnet-version : ${{ matrix.dotnet_version }}
158
192
- name : checkout
159
193
uses : actions/checkout@v1
160
194
- name : Get the version
161
195
id : get_version
162
196
run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
163
197
- name : Select Xcode version
164
- run : sudo xcode-select -s '/Applications/Xcode_${{env.XCODE_VERSION }}.app/Contents/Developer'
198
+ run : sudo xcode-select -s '/Applications/Xcode_${{matrix.xcode_version }}.app/Contents/Developer'
165
199
- name : Show Xcode version
166
200
run : xcodebuild -version
167
201
- name : cmake-build
168
202
run : |
169
- ./tools/build_core3 .sh
203
+ ./tools/build${{matrix.script_suffix}} .sh
170
204
- name : test
171
205
run : |
172
- ./tools/test_core3 .sh
206
+ ./tools/test${{matrix.script_suffix}} .sh
173
207
- name : create archive file
174
208
run : |
175
209
mkdir dist
176
210
cp -rp build/Release/* dist
177
- cp -rp dotnet_project/CfdCsharpProject/bin/Release/netstandard2.1 /cfdcs.* dist
211
+ cp -rp dotnet_project/CfdCsharpProject/bin/Release/${{matrix.framework}} /cfdcs.* dist
178
212
cd dist
179
213
zip -r cfd.zip .
180
214
echo "---- dump zip file ----"
@@ -189,6 +223,6 @@ jobs:
189
223
with :
190
224
upload_url : ${{ steps.get_url.outputs.upload_url }}
191
225
asset_path : ./dist/cfd.zip
192
- asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-macos-dotnet${{env.DOTNET_VERSION }}-xcode${{env.XCODE_VERSION}}-gcc -x86_64.zip
226
+ asset_name : cfdcs-${{ steps.get_version.outputs.VERSION }}-macos-dotnet${{matrix.dotnet_version }}-xcode${{matrix.xcode_version}} -x86_64.zip
193
227
asset_content_type : application/zip
194
228
0 commit comments