mirror of
https://github.com/starship/starship.git
synced 2024-11-23 00:33:16 +01:00
ci: enable aarch64 msi building (#5951)
This commit is contained in:
parent
270c06259b
commit
84162dcd81
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -98,8 +98,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup | Install cargo-wix [Windows]
|
- name: Setup | Install cargo-wix [Windows]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
# aarch64 is only supported in wix 4.0 development builds
|
if: matrix.os == 'windows-latest'
|
||||||
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
|
|
||||||
run: cargo install --version 0.3.4 cargo-wix
|
run: cargo install --version 0.3.4 cargo-wix
|
||||||
env:
|
env:
|
||||||
# cargo-wix does not require static crt
|
# cargo-wix does not require static crt
|
||||||
@ -119,7 +118,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build | Installer [Windows]
|
- name: Build | Installer [Windows]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
|
if: matrix.os == 'windows-latest'
|
||||||
run: >
|
run: >
|
||||||
cargo wix -v --no-build --nocapture -I install/windows/main.wxs
|
cargo wix -v --no-build --nocapture -I install/windows/main.wxs
|
||||||
--target ${{ matrix.target }}
|
--target ${{ matrix.target }}
|
||||||
@ -147,7 +146,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Release | Upload installer artifacts [Windows]
|
- name: Release | Upload installer artifacts [Windows]
|
||||||
continue-on-error: true
|
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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: starship-${{ matrix.target }}.msi
|
name: starship-${{ matrix.target }}.msi
|
||||||
@ -320,9 +319,9 @@ jobs:
|
|||||||
needs: [release_please, github_build, upload_artifacts]
|
needs: [release_please, github_build, upload_artifacts]
|
||||||
if: ${{ needs.release_please.outputs.release_created == 'true' }}
|
if: ${{ needs.release_please.outputs.release_created == 'true' }}
|
||||||
env:
|
env:
|
||||||
URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc.msi
|
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.msi
|
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.zip
|
URL_ARM: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-aarch64-pc-windows-msvc
|
||||||
steps:
|
steps:
|
||||||
# Publishing will fail if the repo is too far behind the upstream
|
# Publishing will fail if the repo is too far behind the upstream
|
||||||
- run: gh repo sync matchai/winget-pkgs
|
- run: gh repo sync matchai/winget-pkgs
|
||||||
@ -331,7 +330,11 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
|
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
|
||||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
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:
|
choco_update:
|
||||||
name: Update Chocolatey Package
|
name: Update Chocolatey Package
|
||||||
|
Loading…
Reference in New Issue
Block a user