From d43da7bf339a35c744510a7f906c94c9c95791ec Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 6 Nov 2024 13:48:43 -0500 Subject: [PATCH] fix(lima) closes #7824 --- projects/lima-vm.io/package.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/projects/lima-vm.io/package.yml b/projects/lima-vm.io/package.yml index 65ce1890f2..e542409976 100644 --- a/projects/lima-vm.io/package.yml +++ b/projects/lima-vm.io/package.yml @@ -11,24 +11,33 @@ dependencies: build: dependencies: go.dev: '*' + linux: + gnu.org/gcc: '*' script: - - run: | - sed -i.bak -e's/ldflags="/ldflags="-buildmode=pie /' Makefile - rm Makefile.bak + - run: + - sed -i -e's/ldflags="/ldflags="-buildmode=pie /' Makefile + - mkdir .bin + - ln -s "$(command -v gcc)" .bin/$ARCH-linux-gnu-gcc if: linux - make $ARGS binaries - mkdir -p {{prefix}} - mv ./_output/* {{prefix}}/ env: - CC: clang - CXX: clang++ - LD: clang + darwin: + CC: clang + CXX: clang++ + LD: clang ARGS: - VERSION={{version}} linux: + PATH: '$SRCROOT/.bin:$PATH' ARGS: - CONFIG_GUESTAGENT_ARCH_ARMV7L=n - CONFIG_GUESTAGENT_ARCH_RISCV64=n + x86-64: + ARCH: x86_64 + aarch64: + ARCH: aarch64 provides: - bin/apptainer.lima @@ -39,5 +48,4 @@ provides: - bin/nerdctl.lima - bin/podman.lima -test: - limactl --version | grep {{version}} +test: limactl --version | grep {{version}}