Skip to content

Commit

Permalink
Merge pull request #56 from thewtex/archive-windows
Browse files Browse the repository at this point in the history
Fix OS archive command
  • Loading branch information
thewtex authored Apr 14, 2024
2 parents 092eed3 + 5b244e8 commit 10b9ba4
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,22 @@ jobs:
cd build/castxml-prefix/src/castxml-build
ctest --output-on-failure
- name: Archive
- name: Create archive for Windows
if: matrix.os == 'windows-2022'
shell: cmd
run: |
cd build
if [[ "${{ runner.os }}" == "Windows" ]]; then
7z a castxml-windows.zip castxml
mv castxml-windows.zip ..
else
tar cvf castxml-${{ matrix.os }}.tar castxml
gzip -9 castxml-${{ matrix.os }}.tar
mv castxml-${{ matrix.os }}.tar.gz ..
fi
7z a castxml-windows.zip castxml
move castxml-windows.zip ..
- name: Create archive for macOS and Ubuntu
if: matrix.os != 'windows-2022'
shell: bash
run: |
cd build
tar cvf castxml-${{ matrix.os }}.tar castxml
gzip -9 castxml-${{ matrix.os }}.tar
mv castxml-${{ matrix.os }}.tar.gz ..
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 10b9ba4

Please sign in to comment.