mirror of
https://github.com/ivuorinen/hiha-arvio.git
synced 2026-01-26 11:24:04 +00:00
fix: remove --no-restore from workflows to fix NETSDK1047 assets error
- Remove separate restore steps for iOS and macOS builds - Let dotnet build/publish handle restoration automatically - Fixes assets file missing runtime identifiers issue - iOS build already verified working, macOS should now work too
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -24,11 +24,8 @@ jobs:
|
||||
- name: Restore workloads
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for iOS
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-ios
|
||||
|
||||
- name: Build iOS
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-ios -c Release --no-restore /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-ios -c Release /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
|
||||
- name: Upload iOS build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -55,11 +52,8 @@ jobs:
|
||||
- name: Restore workloads
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for macOS Catalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-maccatalyst
|
||||
|
||||
- name: Build macOS Catalyst
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-maccatalyst -c Release --no-restore /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-maccatalyst -c Release /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
|
||||
- name: Upload macOS build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@@ -101,15 +101,11 @@ jobs:
|
||||
- name: Restore workloads
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for iOS
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-ios
|
||||
|
||||
- name: Build iOS Release
|
||||
run: |
|
||||
dotnet publish src/HihaArvio/HihaArvio.csproj \
|
||||
-f net8.0-ios \
|
||||
-c Release \
|
||||
--no-restore \
|
||||
/p:ApplicationDisplayVersion=${{ needs.create-release.outputs.version }} \
|
||||
/p:ApplicationVersion=${{ github.run_number }} \
|
||||
/p:ArchiveOnBuild=false \
|
||||
@@ -148,15 +144,11 @@ jobs:
|
||||
- name: Restore workloads
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for macOS Catalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-maccatalyst
|
||||
|
||||
- name: Build macOS Catalyst Release
|
||||
run: |
|
||||
dotnet publish src/HihaArvio/HihaArvio.csproj \
|
||||
-f net8.0-maccatalyst \
|
||||
-c Release \
|
||||
--no-restore \
|
||||
/p:ApplicationDisplayVersion=${{ needs.create-release.outputs.version }} \
|
||||
/p:ApplicationVersion=${{ github.run_number }} \
|
||||
/p:ArchiveOnBuild=false \
|
||||
|
||||
Reference in New Issue
Block a user