Skip to content

Commit

Permalink
Support arm64 in callable k0s build
Browse files Browse the repository at this point in the history
Select the self-hosted arm64 runners when the architecture is arm64. The
k0s build system doesn't support cross-compilation, so the only way to
get arm64 binaries is to run on arm64.

Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Jan 12, 2024
1 parent 1825ea6 commit 2996fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-k0s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
build:
name: ${{ inputs.target-os }}-${{ inputs.target-arch }}
runs-on: ubuntu-22.04
runs-on: ${{ inputs.target-arch == 'arm64' && fromJSON('["self-hosted", "linux", "arm64"]') || 'ubuntu-22.04' }}

env:
TARGET_OS: ${{ inputs.target-os }}
Expand Down

0 comments on commit 2996fe0

Please sign in to comment.