Skip to content

Commit

Permalink
ci: clean up packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepVanlier committed Sep 17, 2024
1 parent 581dd55 commit 2439731
Show file tree
Hide file tree
Showing 3 changed files with 716 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,47 @@ jobs:
if: ${{matrix.os-type == 'Linux' || matrix.os-type == 'macOS' || matrix.os-type == 'MinGW'}}
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config "${build_type}" -j "${num_jobs}"
- name: Reorganize files (windows)
if: ${{matrix.os-type == 'Windows'}}
run: |
powershell -Command "New-Item -Path '${{runner.workspace}}/VST3' -ItemType Directory -Force"
powershell -Command "New-Item -Path '${{runner.workspace}}/CLAP' -ItemType Directory -Force"
powershell -Command "New-Item -Path '${{runner.workspace}}/AU' -ItemType Directory -Force"
powershell -Command "Copy-Item -Path '${{runner.workspace}}/build/*_artefacts/${env:build_type}/VST3/*.vst3' -Destination '${{runner.workspace}}/VST3' -Recurse"
powershell -Command "Copy-Item -Path '${{runner.workspace}}/build/*_artefacts/${env:build_type}/CLAP/*.clap' -Destination '${{runner.workspace}}/CLAP' -Recurse"
powershell -Command "Copy-Item -Path '${{runner.workspace}}/build/*_artefacts/${env:build_type}/AU/*.component' -Destination '${{runner.workspace}}/AU' -Recurse"
powershell -Command "Copy-Item -Path '${{runner.workspace}}/plugin_license/*' -Destination '${{runner.workspace}}' -Recurse"
- name: Reorganize files (linux/mac)
if: ${{matrix.os-type == 'Linux' || matrix.os-type == 'macOS' || matrix.os-type == 'MinGW'}}
run: |
mkdir -p ${{runner.workspace}}/VST3
mkdir -p ${{runner.workspace}}/CLAP
mkdir -p ${{runner.workspace}}/AU
cp -r ${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/VST3/*.vst3 ${{runner.workspace}}/VST3
cp -r ${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/CLAP/*.clap ${{runner.workspace}}/CLAP
cp -r ${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/AU/*.component ${{runner.workspace}}/AU
cp -r ${{runner.workspace}}/plugin_license/* ${{runner.workspace}}
- uses: actions/upload-artifact@v4
if: ${{matrix.artifacts == 'yes'}}
with:
name: ${{matrix.display-name}} VST3
path: "${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/VST3/*.vst3"
path: |
${{runner.workspace}}/VST3/*
${{runner.workspace}}/LICENSE
${{runner.workspace}}/README
- uses: actions/upload-artifact@v4
if: ${{matrix.artifacts == 'yes'}}
with:
name: ${{matrix.display-name}} CLAP
path: "${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/CLAP/*.clap"
path: |
${{runner.workspace}}/CLAP/*
${{runner.workspace}}/LICENSE
${{runner.workspace}}/README
- uses: actions/upload-artifact@v4
if: ${{matrix.os-type == 'macOS' && matrix.artifacts == 'yes'}}
with:
name: ${{matrix.display-name}} AU
path: "${{runner.workspace}}/build/*_artefacts/${{env.build_type}}/AU/*.component"
path: |
${{runner.workspace}}/AU/*
${{runner.workspace}}/LICENSE
${{runner.workspace}}/README
Loading

0 comments on commit 2439731

Please sign in to comment.