Skip to content

Commit ef03179

Browse files
Simplify command steps required for copying config
Setup dummy new experiment for WASM build for registry creation
1 parent f5ea2ce commit ef03179

1 file changed

Lines changed: 21 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,14 @@ jobs:
116116
with:
117117
path: 'tooling'
118118

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 .config directory
119+
- name: Copy props and config files to root and setup structure
125120
shell: pwsh
126121
working-directory: ./
127-
run: mkdir ./.config
128-
129-
- name: Copy tooling config to root
130-
shell: pwsh
131-
working-directory: ./
132-
run: copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
133-
134-
- name: Make empty component directory
135-
shell: pwsh
136-
working-directory: ./
137-
run: mkdir ./components
122+
run: |
123+
copy ./tooling/.github/workflows/Directory.Build.* ./
124+
mkdir ./.config
125+
copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
126+
mkdir ./components
138127
139128
- name: Add msbuild to PATH
140129
uses: microsoft/setup-msbuild@v1.3.1
@@ -211,31 +200,29 @@ jobs:
211200
with:
212201
path: 'tooling'
213202

214-
- name: Copy props files to root
215-
shell: pwsh
216-
working-directory: ./
217-
run: copy ./tooling/.github/workflows/Directory.Build.* ./
218-
219-
- name: Make .config directory
203+
- name: Copy props and config files to root and setup structure
220204
shell: pwsh
221205
working-directory: ./
222-
run: mkdir ./.config
223-
224-
- name: Copy tooling config to root
225-
shell: pwsh
226-
working-directory: ./
227-
run: copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
228-
229-
- name: Make empty component directory
230-
shell: pwsh
231-
working-directory: ./
232-
run: mkdir ./components
206+
run: |
207+
copy ./tooling/.github/workflows/Directory.Build.* ./
208+
mkdir ./.config
209+
copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
210+
mkdir ./components
233211
234212
# Restore Tools from Manifest list in the Repository
235213
- name: Restore dotnet tools
236214
working-directory: ./
237215
run: dotnet tool restore
238216

217+
# Create a new experiment from the template and test using that
218+
- name: Install template
219+
working-directory: ${{ env.PROJECT_DIRECTORY }}
220+
run: dotnet new --install ./
221+
222+
- name: Create new experiment
223+
working-directory: ./components
224+
run: dotnet new labexp -n ${{ env.TEST_PROJECT_NAME }}
225+
239226
- name: Generate solution
240227
shell: pwsh
241228
working-directory: ./

0 commit comments

Comments
 (0)