24
24
steps :
25
25
- name : Checkout
26
26
uses : actions/checkout@v3
27
-
27
+
28
28
- name : Prepare builder
29
29
run : |
30
30
docker run --rm dockcross/${{ matrix.arch_name }} > ./dockcross
37
37
cd ./compiler/cpp/lib
38
38
git clone --depth 1 --branch release-1.12.1 https://github.com/google/googletest.git
39
39
curl -sSL https://github.com/nlohmann/json/releases/download/v3.11.2/json.hpp --output json/json.hpp
40
-
40
+
41
41
- name : Configure
42
42
run : ./dockcross cmake -Bbin -H./compiler/cpp -GNinja
43
43
47
47
- name : Process build output - Linux
48
48
if : ${{ startsWith(matrix.arch_name, 'linux') }}
49
49
working-directory : bin
50
- run : |
51
- mv ./src/CCom_run ccomc
52
- chmod +x ccomc
53
-
54
- - name : Process build output - Windows
55
- if : ${{ startsWith(matrix.arch_name, 'windows') }}
56
- working-directory : bin
57
- run : mv ./src/CCom_run.exe ccomc.exe
50
+ run : chmod +x ccomc
58
51
59
52
- name : Upload artifact
60
53
uses : actions/upload-artifact@v3
77
70
78
71
- name : Set up QEMU
79
72
uses : docker/setup-qemu-action@v2
80
-
73
+
81
74
- name : Set up Docker Buildx
82
75
uses : docker/setup-buildx-action@v2
83
76
@@ -186,11 +179,11 @@ jobs:
186
179
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-xenial/"
187
180
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-trusty/"
188
181
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-jammy/"
189
-
182
+
190
183
- name : Deploy to CentOS repo
191
184
run : |
192
185
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./ccom_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/centos/ccom/${{ steps.get_version.outputs.version }}/compose-generator-${{ matrix.arch }}.rpm
193
-
186
+
194
187
- name : Deploy to Fedora repo
195
188
run : |
196
189
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./ccom_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/fedora/ccom/${{ steps.get_version.outputs.version }}/compose-generator-${{ matrix.arch }}.rpm
@@ -261,25 +254,16 @@ jobs:
261
254
asset_name : ccom_${{ matrix.config.label }}_setup.msi
262
255
tag : ${{ github.ref }}
263
256
264
-
265
- - uses : vedantmgoyal2009/winget-releaser@v1
266
- with :
267
- identifier : ChilliBits.CCom
268
- version : ${{ github.ref_name }}
269
- release-tag : ${{ github.ref_name }}
270
- token : ${{ secrets.CR_PAT }}
271
-
272
257
deploy-win-installers :
273
258
name : Deploy installers
274
259
if : startsWith(github.ref, 'refs/tags/')
275
260
needs : build-win-installers
276
261
runs-on : windows-latest
277
262
278
263
steps :
279
- - uses : vedantmgoyal2009/winget-releaser@v1
264
+ - uses : vedantmgoyal2009/winget-releaser@v2
280
265
with :
281
266
identifier : ChilliBits.CCom
282
267
version : ${{ github.ref }}
283
268
release-tag : ${{ github.ref }}
284
- token : ${{ secrets.CR_PAT }}
285
-
269
+ token : ${{ secrets.CR_PAT }}
0 commit comments