Преглед изворни кода

Just specify the arch, not full rid

It's a WPF app and I have no plans to expand past Windows
Daniel Chalmers пре 9 месеци
родитељ
комит
7058b51c49
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      .github/actions/prepare-for-release/action.yml

+ 6 - 6
.github/actions/prepare-for-release/action.yml

@@ -6,9 +6,9 @@ inputs:
   version:
     description: 'Version number for the app'
     default: '0.0.0'
-  rids:
-    description: 'Runtime identifiers for the build'
-    default: 'win-x64 win-arm64'
+  archs:
+    description: 'Architectures for the build'
+    default: 'x64 arm64'
 
 runs:
   using: "composite"
@@ -27,9 +27,9 @@ runs:
       shell: bash
       run: |
         dotnet tool install --global wix --version 4.0.6
-        for rid in ${{ inputs.rids }}; do
-          dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$rid" -c Release -r $rid -p:Version=${{ inputs.version }}
-          wix build Product.wxs -d MainExeSource="publish/$rid/DesktopClock.exe" -o "publish/$rid/DesktopClock-${{ inputs.version }}-${rid}.msi"
+        for arch in ${{ inputs.archs }}; do
+          dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$arch" -c Release --os win --arch $arch -p:Version=${{ inputs.version }}
+          wix build Product.wxs -d MainExeSource="publish/$arch/DesktopClock.exe" -o "publish/$arch/DesktopClock-${{ inputs.version }}-${arch}.msi"
         done
 
     - uses: actions/upload-artifact@v4