diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f34964c..a37c82d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }}.*