Skip to content

Commit

Permalink
Fix Windows runtime identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Dec 10, 2023
1 parent 52b1119 commit 368e2d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ jobs:
# Build win-x64
- name: Build win-x64
if: matrix.platform == 'windows-latest'
run: dotnet publish --configuration Release --self-contained -p:PublishSingleFile=true -r win10-x64
run: dotnet publish --configuration Release --self-contained -p:PublishSingleFile=true -r win-x64
#- name: ZIP win-x64
# if: matrix.platform == 'windows-latest'
# run: 7z a -tzip artifacts/efmig-win-x64-Release.zip ./Efmig/bin/Release/net8.0/win10-x64/publish/*
# run: 7z a -tzip artifacts/efmig-win-x64-Release.zip ./Efmig/bin/Release/net8.0/win-x64/publish/*
- name: Upload win-x64 artifacts
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: efmig-win-x64-Release
path: Efmig/bin/Release/net8.0/win10-x64/publish/
path: Efmig/bin/Release/net8.0/win-x64/publish/
if-no-files-found: error

# Build win-arm64
- name: Build win-arm64
if: matrix.platform == 'windows-latest'
run: dotnet publish --configuration Release --self-contained -p:PublishSingleFile=true -r win10-arm64
run: dotnet publish --configuration Release --self-contained -p:PublishSingleFile=true -r win-arm64
#- name: ZIP win-arm64
# if: matrix.platform == 'windows-latest'
# run: 7z a -tzip artifacts/efmig-win-arm64-Release.zip ./Efmig/bin/Release/net8.0/win10-arm64/publish/*
# run: 7z a -tzip artifacts/efmig-win-arm64-Release.zip ./Efmig/bin/Release/net8.0/win-arm64/publish/*
- name: Upload win-arm64 artifacts
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: efmig-win-arm64-Release
path: Efmig/bin/Release/net8.0/win10-arm64/publish/
path: Efmig/bin/Release/net8.0/win-arm64/publish/
if-no-files-found: error

# Build linux-x64
Expand Down
4 changes: 2 additions & 2 deletions workflowgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const platformTemplateGen = (name: string, rid: string, platform: string) =>
`;

const extraSteps = [
platformTemplateGen("win-x64", "win10-x64", "windows-latest"),
platformTemplateGen("win-arm64", "win10-arm64", "windows-latest"),
platformTemplateGen("win-x64", "win-x64", "windows-latest"),
platformTemplateGen("win-arm64", "win-arm64", "windows-latest"),
platformTemplateGen("linux-x64", "linux-x64", "ubuntu-latest"),
platformTemplateGen("linux-arm64", "linux-arm64", "ubuntu-latest"),
platformTemplateGen("osx-x64", "osx-x64", "macos-latest"),
Expand Down

0 comments on commit 368e2d9

Please sign in to comment.