Skip to content

Commit

Permalink
fix: separate zip task for different runners
Browse files Browse the repository at this point in the history
  • Loading branch information
xivilay committed Jan 11, 2024
1 parent a9f8184 commit 6cb0316
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,17 @@ jobs:
- name: Build
run: cmake --build ${{ env.BUILD_DIR }} --config ${{ env.BUILD_TYPE }}

- name: Zip
- name: Zip (Mac)
if: runner.os == 'macOS'
working-directory: ${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}
run: cmake -E tar cv ${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_${{ matrix.runner }}.7z --format=7zip Standalone/ LV2/${{ env.PROJECT_NAME }}.lv2 VST3/${{ env.PROJECT_NAME }}.vst3 AU/${{ env.PROJECT_NAME }}.component
run: cmake -E tar cv ${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_${{ matrix.runner }}.7z --format=7zip Standalone/ VST3/${{ env.PROJECT_NAME }}.vst3 AU/${{ env.PROJECT_NAME }}.component

- name: Zip (non Mac)
if: runner.os != 'macOS'
working-directory: ${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}
run: cmake -E tar cv ${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_${{ matrix.runner }}.7z --format=7zip Standalone/ LV2/${{ env.PROJECT_NAME }}.lv2 VST3/${{ env.PROJECT_NAME }}.vst3

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}_${{ matrix.runner }}
Expand Down

0 comments on commit 6cb0316

Please sign in to comment.