Skip to content

Commit b22312e

Browse files
Split out new-experiment and project-template build jobs
Setup empty component directory for searching/staging
1 parent 3856669 commit b22312e

1 file changed

Lines changed: 43 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ jobs:
4545
- name: Check XAML Styling
4646
run: powershell -version 5.1 -command "./ApplyXamlStyling.ps1 -Passive" -ErrorAction Stop
4747

48-
# Test job to build a single experiment to ensure our changes work for both our main types of solutions at the moment
49-
new-experiment:
50-
# TODO: We should only run this if something in the common or template folder changed...
48+
# Test job to build the project template
49+
project-template:
5150
runs-on: windows-latest
5251
env:
5352
HEADS_DIRECTORY: tooling/ProjectHeads
5453
PROJECT_DIRECTORY: tooling/ProjectTemplate
55-
TEST_PROJECT_NAME: CiTestExp
56-
TEST_PROJECT_DIRECTORY: components/CiTestExp
5754

5855
steps:
5956
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
@@ -91,9 +88,43 @@ jobs:
9188
working-directory: ./${{ env.PROJECT_DIRECTORY }}
9289
run: msbuild.exe ProjectTemplate.sln /restore /nowarn:MSB4011 -p:Configuration=Debug
9390

94-
- name: Clean environment
91+
# Test job to build a single experiment to ensure our changes work for both our main types of solutions at the moment
92+
new-experiment:
93+
runs-on: windows-latest
94+
env:
95+
HEADS_DIRECTORY: tooling/ProjectHeads
96+
PROJECT_DIRECTORY: tooling/ProjectTemplate
97+
TEST_PROJECT_NAME: CiTestExp
98+
TEST_PROJECT_DIRECTORY: components/CiTestExp
99+
100+
steps:
101+
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
102+
uses: actions/setup-dotnet@v3
103+
with:
104+
dotnet-version: ${{ env.DOTNET_VERSION }}
105+
106+
- name: .NET Info (if diagnostics)
107+
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
108+
run: dotnet --info
109+
110+
- name: Enable git long paths
111+
run: git config --system core.longpaths true
112+
113+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
114+
- name: Checkout Repository
115+
uses: actions/checkout@v3
116+
with:
117+
path: 'tooling'
118+
119+
- name: Copy props files to root
120+
shell: pwsh
121+
working-directory: ./
122+
run: copy ./tooling/.github/workflows/Directory.Build.* ./
123+
124+
- name: Make empty component directory
125+
shell: pwsh
95126
working-directory: ./
96-
run: git clean -xdf
127+
run: mkdir ./components
97128

98129
# Create a new experiment from the template and test using that
99130
- name: Install template
@@ -167,6 +198,11 @@ jobs:
167198
working-directory: ./
168199
run: copy ./tooling/.github/workflows/Directory.Build.* ./
169200

201+
- name: Make empty component directory
202+
shell: pwsh
203+
working-directory: ./
204+
run: mkdir ./components
205+
170206
# Restore Tools from Manifest list in the Repository
171207
- name: Restore dotnet tools
172208
run: dotnet tool restore

0 commit comments

Comments
 (0)