Skip to content

Commit d3060b0

Browse files
authored
Merge pull request #66 from johnnynunez/master
[BUG] FIX ARTIFACTS
2 parents 17643a9 + e47ca7e commit d3060b0

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ jobs:
6464
#####################################
6565
- name: Configure
6666
run: |
67-
cmake -B build -S . -GNinja -DCMAKE_BUILD_TYPE=Release
67+
cmake -B build -S . -GNinja
6868
shell: bash
6969

7070
#####################################
7171
# Build the Superbuild
7272
#####################################
7373
- name: Build
74-
run: cmake --build build --config Release
74+
run: ninja -C build
75+
shell: bash
7576

7677
#####################################
7778
# [Optional] Run Tests
@@ -88,20 +89,21 @@ jobs:
8889
if: startsWith(matrix.os, 'windows')
8990
shell: cmd
9091
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 ..
9395
9496
- name: Create Artifact (Non-Windows)
9597
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
9698
shell: bash
9799
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 ..
100104
101105
- name: Upload Artifact
102106
uses: actions/upload-artifact@v4
103107
with:
104108
name: castxml-${{ matrix.os }}-${{ matrix.arch }}
105-
path: |
106-
build/castxml-*.tar.gz
107-
build/castxml-*.zip
109+
path: ./castxml-${{ matrix.os }}-${{ matrix.arch }}.*

0 commit comments

Comments
 (0)