Skip to content

Commit 35c82b4

Browse files
committed
Update build.yml
1 parent f344ab0 commit 35c82b4

File tree

1 file changed

+68
-53
lines changed

1 file changed

+68
-53
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -12,57 +12,72 @@ jobs:
1212
runs-on: windows-latest
1313

1414
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
# - name: Set up PowerShell
19-
# uses: actions/setup-powershell@v2
20-
21-
- name: Set up Wasm
22-
shell: pwsh
23-
working-directory: src/Codex.Web.Wasm
24-
run: |
25-
dotnet workload install wasm-tools
26-
27-
dotnet workload install wasm-experimental
28-
29-
- name: Publish Wasm
30-
shell: pwsh
31-
run: dotnet publish src/Codex.Web.Wasm/Codex.Web.Wasm.csproj -o bin/wasm
32-
33-
- name: Upload Wasm Artifact
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: codex.web.wasm
37-
path: bin/wasm
38-
39-
- name: Publish Exe
40-
shell: pwsh
41-
run: dotnet publish src/Codex.Application/Codex.Application.csproj -o bin/exe
42-
43-
- name: Upload Exe Artifact
44-
uses: actions/upload-artifact@v4
45-
with:
46-
name: codex
47-
path: bin/exe
48-
49-
- name: Create WASM deployment
50-
shell: pwsh
51-
run: ./deploywasm.ps1
52-
53-
- name: Build
54-
shell: pwsh
55-
run: ./build.ps1
56-
57-
- name: Analyze
58-
shell: pwsh
59-
run: ./analyze.ps1
60-
61-
- name: Ingest
62-
shell: pwsh
63-
run: ./ingest.ps1 -OutputDir bin/wasm/index
64-
65-
66-
# - name: Set up PowerShell
67-
# uses: actions/setup-powershell@v2
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Build
19+
shell: pwsh
20+
run: ./build.ps1
21+
env:
22+
DisableWorkloads: 'true'
23+
24+
- name: Analyze
25+
shell: pwsh
26+
run: ./analyze.ps1
27+
28+
- name: Ingest
29+
shell: pwsh
30+
run: ./ingest.ps1 -OutputDir bin/web/index
31+
32+
- name: Upload Index Artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: index
36+
path: bin/web/index
37+
38+
publish:
39+
runs-on: windows-latest
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
45+
# - name: Set up PowerShell
46+
# uses: actions/setup-powershell@v2
47+
48+
- name: Set up Wasm
49+
shell: pwsh
50+
working-directory: src/Codex.Web.Wasm
51+
run: |
52+
dotnet workload install wasm-tools
53+
54+
dotnet workload install wasm-experimental
55+
56+
- name: Publish Wasm
57+
shell: pwsh
58+
run: dotnet publish src/Codex.Web.Wasm/Codex.Web.Wasm.csproj -o bin/wasm
59+
60+
- name: Upload Wasm Artifact
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: codex.web.wasm
64+
path: bin/wasm/wwwroot
65+
66+
- name: Publish Exe
67+
shell: pwsh
68+
run: dotnet publish src/Codex.Application/Codex.Application.csproj -o bin/exe
69+
70+
- name: Upload Exe Artifact
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: codex
74+
path: bin/exe
75+
76+
- name: Create WASM deployment
77+
shell: pwsh
78+
run: ./deploywasm.ps1
79+
80+
81+
# - name: Set up PowerShell
82+
# uses: actions/setup-powershell@v2
6883

0 commit comments

Comments
 (0)