diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cc77223e..c5d94a1b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,10 +54,10 @@ jobs: # working-directory: ./ run: msbuild.exe Toolkit.Labs.All.sln /restore -p:Configuration=Release - # Build All Packages - TODO: Detect experiments - - name: pack CanvasLayout - working-directory: ./labs/CanvasLayout/src - run: msbuild -t:pack /p:Configuration=Release /p:DebugType=Portable + # Build All Packages + - name: pack experiments + working-directory: ./common/Scripts/ + run: ./PackEachExperiment.ps1 all # Push Packages to our DevOps Artifacts Feed - name: Add source @@ -129,10 +129,10 @@ jobs: # working-directory: ./ run: msbuild.exe Toolkit.Labs.All.sln /restore -p:Configuration=Release - # Build All Packages - TODO: Detect experiments - - name: pack CanvasLayout - working-directory: ./labs/CanvasLayout/src - run: msbuild -t:pack /p:Configuration=Release /p:DebugType=Portable + # Build All Packages + - name: pack experiments + working-directory: ./common/Scripts/ + run: ./PackEachExperiment.ps1 all # Push Packages to our DevOps Artifacts Feed - name: Add source diff --git a/common/Scripts/PackEachExperiment.ps1 b/common/Scripts/PackEachExperiment.ps1 new file mode 100644 index 000000000..49939aa48 --- /dev/null +++ b/common/Scripts/PackEachExperiment.ps1 @@ -0,0 +1,4 @@ + +foreach ($experimentProjPath in Get-ChildItem -Recurse -Path '../../labs/*/src/*.csproj') { + & msbuild.exe -t:pack /p:Configuration=Release /p:DebugType=Portable $experimentProjPath +}