Skip to content
Merged
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question for later: Do we want to even try packing the experiments unless this is a merge to main? i.e. add the if: ${{github.ref == 'refs/heads/main'}} condition we do on the push below? Considering we're building them above, do we foresee running into different issues on the pack command? Don't know how long this step will take overall as we get more experiments.

working-directory: ./common/Scripts/
run: ./PackEachExperiment.ps1 all

# Push Packages to our DevOps Artifacts Feed
- name: Add source
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions common/Scripts/PackEachExperiment.ps1
Original file line number Diff line number Diff line change
@@ -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
}