Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ jobs:
#####################################
- name: Configure
run: |
cmake -B build -S . -GNinja -DCMAKE_BUILD_TYPE=Release
cmake -B build -S . -GNinja
shell: bash

#####################################
# Build the Superbuild
#####################################
- name: Build
run: cmake --build build --config Release
run: ninja -C build
shell: bash

#####################################
# [Optional] Run Tests
Expand All @@ -88,20 +89,21 @@ jobs:
if: startsWith(matrix.os, 'windows')
shell: cmd
run: |
cd build\castxml\bin
7z a ..\..\castxml-${{ matrix.os }}-${{ matrix.arch }}.zip castxml.exe
cd build
7z a castxml-${{ matrix.os }}-${{ matrix.arch }}.zip castxml
move castxml-${{ matrix.os }}-${{ matrix.arch }}.zip ..

- name: Create Artifact (Non-Windows)
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
shell: bash
run: |
cd build/castxml/bin
tar czvf ../../castxml-${{ matrix.os }}-${{ matrix.arch }}.tar.gz castxml
cd build
tar cvf castxml-${{ matrix.os }}-${{ matrix.arch }}.tar castxml
gzip -9 castxml-${{ matrix.os }}-${{ matrix.arch }}.tar
mv castxml-${{ matrix.os }}-${{ matrix.arch }}.tar.gz ..

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: castxml-${{ matrix.os }}-${{ matrix.arch }}
path: |
build/castxml-*.tar.gz
build/castxml-*.zip
path: ./castxml-${{ matrix.os }}-${{ matrix.arch }}.*
Loading