Skip to content

Commit e40309b

Browse files
authored
Pack all experiments individually (#106)
* Pack all experiments * pack experiments in WinUI3 build too * fix rogue newline char * simplify script and search for sln files explicitly * pack individual projects rather than the sln * move to common scripts folder * Pack all experiments * pack experiments in WinUI3 build too * fix rogue newline char * simplify script and search for sln files explicitly * pack individual projects rather than the sln * move to common scripts folder * fix relative path
1 parent d6818fd commit e40309b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
# working-directory: ./
5555
run: msbuild.exe Toolkit.Labs.All.sln /restore -p:Configuration=Release
5656

57-
# Build All Packages - TODO: Detect experiments
58-
- name: pack CanvasLayout
59-
working-directory: ./labs/CanvasLayout/src
60-
run: msbuild -t:pack /p:Configuration=Release /p:DebugType=Portable
57+
# Build All Packages
58+
- name: pack experiments
59+
working-directory: ./common/Scripts/
60+
run: ./PackEachExperiment.ps1 all
6161

6262
# Push Packages to our DevOps Artifacts Feed
6363
- name: Add source
@@ -129,10 +129,10 @@ jobs:
129129
# working-directory: ./
130130
run: msbuild.exe Toolkit.Labs.All.sln /restore -p:Configuration=Release
131131

132-
# Build All Packages - TODO: Detect experiments
133-
- name: pack CanvasLayout
134-
working-directory: ./labs/CanvasLayout/src
135-
run: msbuild -t:pack /p:Configuration=Release /p:DebugType=Portable
132+
# Build All Packages
133+
- name: pack experiments
134+
working-directory: ./common/Scripts/
135+
run: ./PackEachExperiment.ps1 all
136136

137137
# Push Packages to our DevOps Artifacts Feed
138138
- name: Add source
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
foreach ($experimentProjPath in Get-ChildItem -Recurse -Path '../../labs/*/src/*.csproj') {
3+
& msbuild.exe -t:pack /p:Configuration=Release /p:DebugType=Portable $experimentProjPath
4+
}

0 commit comments

Comments
 (0)