File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,15 @@ jobs:
64
64
# ####################################
65
65
- name : Configure
66
66
run : |
67
- cmake -B build -S . -GNinja -DCMAKE_BUILD_TYPE=Release
67
+ cmake -B build -S . -GNinja
68
68
shell : bash
69
69
70
70
# ####################################
71
71
# Build the Superbuild
72
72
# ####################################
73
73
- name : Build
74
- run : cmake --build build --config Release
74
+ run : ninja -C build
75
+ shell : bash
75
76
76
77
# ####################################
77
78
# [Optional] Run Tests
@@ -88,20 +89,21 @@ jobs:
88
89
if : startsWith(matrix.os, 'windows')
89
90
shell : cmd
90
91
run : |
91
- cd build\castxml\bin
92
- 7z a ..\..\castxml-${{ matrix.os }}-${{ matrix.arch }}.zip castxml.exe
92
+ cd build
93
+ 7z a castxml-${{ matrix.os }}-${{ matrix.arch }}.zip castxml
94
+ move castxml-${{ matrix.os }}-${{ matrix.arch }}.zip ..
93
95
94
96
- name : Create Artifact (Non-Windows)
95
97
if : startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
96
98
shell : bash
97
99
run : |
98
- cd build/castxml/bin
99
- tar czvf ../../castxml-${{ matrix.os }}-${{ matrix.arch }}.tar.gz castxml
100
+ cd build
101
+ tar cvf castxml-${{ matrix.os }}-${{ matrix.arch }}.tar castxml
102
+ gzip -9 castxml-${{ matrix.os }}-${{ matrix.arch }}.tar
103
+ mv castxml-${{ matrix.os }}-${{ matrix.arch }}.tar.gz ..
100
104
101
105
- name : Upload Artifact
102
106
uses : actions/upload-artifact@v4
103
107
with :
104
108
name : castxml-${{ matrix.os }}-${{ matrix.arch }}
105
- path : |
106
- build/castxml-*.tar.gz
107
- build/castxml-*.zip
109
+ path : ./castxml-${{ matrix.os }}-${{ matrix.arch }}.*
You can’t perform that action at this time.
0 commit comments