fix: add linux-x64 runtime to restore and remove --no-build from publish
TaxBaik CI/CD / build-and-deploy (push) Failing after 28s
TaxBaik CI/CD / build-and-deploy (push) Failing after 28s
Problem: - CI runs on Linux (ubuntu-latest) - Local restore was Windows-only, missing linux-x64 runtime - --no-build skipped rebuild, so publish used stale assets Solution: - dotnet restore -r linux-x64 (include Linux runtime) - Remove --no-build from publish (allow rebuild if needed) This fixes NETSDK1047 error on Linux CI. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,8 +19,8 @@ jobs:
|
||||
with:
|
||||
dotnet-version: '10.0'
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore src/TaxBaik.sln
|
||||
- name: Restore dependencies (include Linux runtime)
|
||||
run: dotnet restore src/TaxBaik.sln -r linux-x64
|
||||
|
||||
- name: Build solution
|
||||
run: dotnet build src/TaxBaik.sln -c Release --no-restore -p:ContinuousIntegrationBuild=true
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
run: dotnet test src/TaxBaik.sln -c Release --no-build
|
||||
|
||||
- name: Publish Web (auto-includes WASM from referenced TaxBaik.Web.Client)
|
||||
run: dotnet publish src/TaxBaik.Web/ -c Release -o ./publish --no-restore --no-build -p:PublishReadyToRun=true -p:SelfContained=false
|
||||
run: dotnet publish src/TaxBaik.Web/ -c Release -o ./publish --no-restore -p:PublishReadyToRun=true -p:SelfContained=false
|
||||
|
||||
- name: Publish Proxy
|
||||
run: dotnet publish src/TaxBaik.Proxy/ -c Release -o ./publish/proxy
|
||||
|
||||
Reference in New Issue
Block a user