Skip to content

Commit

Permalink
optimize and debug binding build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Got17 committed Jan 14, 2025
1 parent 4f50271 commit 8525d1a
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ jobs:
persist-credentials: false
submodules: true

- name: Clear NuGet Cache
run: dotnet nuget locals all --clear

- name: Cache NuGet Packages
uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand All @@ -32,19 +43,19 @@ jobs:
run: npm install -g vite

- name: Restore Binding Project Dependencies
run: dotnet restore
run: dotnet restore --verbosity minimal
working-directory: WebSharper.CredentialManagement

- name: Build Binding Project with Logs
run: dotnet build --configuration Release --verbosity diagnostic --no-restore
- name: Build Binding Project with Limited Parallelism
run: dotnet build --configuration Release --verbosity diagnostic --no-restore -maxcpucount:1
working-directory: WebSharper.CredentialManagement

- name: Restore Sample Project Dependencies
run: dotnet restore
run: dotnet restore --verbosity minimal
working-directory: WebSharper.CredentialManagement.Sample

- name: Build Sample Project with Logs
run: dotnet build --configuration Release --verbosity diagnostic --no-restore
- name: Build Sample Project with Limited Parallelism
run: dotnet build --configuration Release --verbosity diagnostic --no-restore -maxcpucount:1
working-directory: WebSharper.CredentialManagement.Sample

- name: Build Static Files with Vite
Expand Down

0 comments on commit 8525d1a

Please sign in to comment.