Skip to content

Commit e47ca7e

Browse files
authored
Update ci.yml
1 parent 95a2fff commit e47ca7e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,21 @@ jobs:
8989
if: startsWith(matrix.os, 'windows')
9090
shell: cmd
9191
run: |
92-
cd build\castxml\bin
93-
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 ..
9495
9596
- name: Create Artifact (Non-Windows)
9697
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
9798
shell: bash
9899
run: |
99-
cd build/castxml/bin
100-
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 ..
101104
102105
- name: Upload Artifact
103106
uses: actions/upload-artifact@v4
104107
with:
105108
name: castxml-${{ matrix.os }}-${{ matrix.arch }}
106-
path: |
107-
build/castxml-*.tar.gz
108-
build/castxml-*.zip
109+
path: ./castxml-${{ matrix.os }}-${{ matrix.arch }}.*

0 commit comments

Comments
 (0)