summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2024-05-12 09:59:26 +0200
committerGitHub <noreply@github.com>2024-05-12 09:59:26 +0200
commit84162dcd8104cd0b6f118692405146eb6f62fc79 (patch)
tree7adce00ede80a036470b3f703f5e9b8ab89b271f
parent270c06259b97676704c1d91372e93a08a02318b5 (diff)
ci: enable aarch64 msi building (#5951)
-rw-r--r--.github/workflows/release.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d4d9f44fa..af06a831f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -98,8 +98,7 @@ jobs:
- name: Setup | Install cargo-wix [Windows]
continue-on-error: true
- # aarch64 is only supported in wix 4.0 development builds
- if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
+ if: matrix.os == 'windows-latest'
run: cargo install --version 0.3.4 cargo-wix
env:
# cargo-wix does not require static crt
@@ -119,7 +118,7 @@ jobs:
- name: Build | Installer [Windows]
continue-on-error: true
- if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
+ if: matrix.os == 'windows-latest'
run: >
cargo wix -v --no-build --nocapture -I install/windows/main.wxs
--target ${{ matrix.target }}
@@ -147,7 +146,7 @@ jobs:
- name: Release | Upload installer artifacts [Windows]
continue-on-error: true
- if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
+ if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: starship-${{ matrix.target }}.msi
@@ -320,9 +319,9 @@ jobs:
needs: [release_please, github_build, upload_artifacts]
if: ${{ needs.release_please.outputs.release_created == 'true' }}
env:
- URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc.msi
- URL_32: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-i686-pc-windows-msvc.msi
- URL_ARM: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-aarch64-pc-windows-msvc.zip
+ URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc
+ URL_32: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-i686-pc-windows-msvc
+ URL_ARM: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-aarch64-pc-windows-msvc
steps:
# Publishing will fail if the repo is too far behind the upstream
- run: gh repo sync matchai/winget-pkgs
@@ -331,7 +330,11 @@ jobs:
- run: |
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
- ./wingetcreate.exe update Starship.Starship -s -v $version -u $env:URL_64 $env:URL_32 $env:URL_ARM -t ${{ secrets.GH_PAT }}
+ ./wingetcreate.exe update Starship.Starship -s -v $version `
+ -u ${{ env.URL_64 }}.msi ${{ env.URL_64 }}.zip `
+ ${{ env.URL_32 }}.msi ${{ env.URL_32 }}.zip `
+ ${{ env.URL_ARM }}.msi ${{ env.URL_ARM }}.zip `
+ -t ${{ secrets.GH_PAT }}
choco_update:
name: Update Chocolatey Package