From 83fc90273f083652791ec77527a6f5e88823fef1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 12 Sep 2021 14:16:35 +0200 Subject: [PATCH] refactor(linux): build arm64 --- .github/workflows/artifacts.yml | 2 +- .github/workflows/release.yml | 2 +- packages/powershell/oh-my-posh/deploy.ps1 | 2 +- packages/powershell/oh-my-posh/oh-my-posh.psm1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index aafc6160..7cdb434b 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -17,7 +17,7 @@ jobs: goarch: [amd64] include: - os: ubuntu-latest - goarch: arm + goarch: arm64 - os: windows-latest goarch: 386 - os: windows-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66d06155..581c41d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: goarch: [amd64] include: - os: ubuntu-latest - goarch: arm + goarch: arm64 - os: windows-latest goarch: 386 - os: windows-latest diff --git a/packages/powershell/oh-my-posh/deploy.ps1 b/packages/powershell/oh-my-posh/deploy.ps1 index f4d5b688..dc50620a 100644 --- a/packages/powershell/oh-my-posh/deploy.ps1 +++ b/packages/powershell/oh-my-posh/deploy.ps1 @@ -20,7 +20,7 @@ Param Copy-Item -Path "../../../themes" -Destination "./themes" -Recurse # fetch all the binaries from the version's GitHub release New-Item -Path "./" -Name "bin" -ItemType "directory" -"posh-windows-amd64.exe", "posh-windows-386.exe", "posh-windows-arm64.exe", "posh-darwin-amd64", "posh-linux-amd64", "posh-linux-arm" | ForEach-Object -Process { +"posh-windows-amd64.exe", "posh-windows-386.exe", "posh-windows-arm64.exe", "posh-darwin-amd64", "posh-linux-amd64", "posh-linux-arm64" | ForEach-Object -Process { $download = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$BinVersion/$_" Invoke-WebRequest $download -Out "./bin/$_" } diff --git a/packages/powershell/oh-my-posh/oh-my-posh.psm1 b/packages/powershell/oh-my-posh/oh-my-posh.psm1 index 6f96d60e..d5c39491 100644 --- a/packages/powershell/oh-my-posh/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh/oh-my-posh.psm1 @@ -15,7 +15,7 @@ function Get-PoshCommand { # this is rather hacky but there's no other way for the time being $arch = uname -m if (($arch -eq 'aarch64') -or ($arch -eq 'armv7l')) { - return "$PSScriptRoot/bin/posh-linux-arm" + return "$PSScriptRoot/bin/posh-linux-arm64" } return "$PSScriptRoot/bin/posh-linux-amd64" }