Skip to content

Commit

Permalink
fix(lima)
Browse files Browse the repository at this point in the history
 closes #7824
  • Loading branch information
jhheider committed Nov 6, 2024
1 parent 68559db commit d43da7b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions projects/lima-vm.io/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,5 +48,4 @@ provides:
- bin/nerdctl.lima
- bin/podman.lima

test:
limactl --version | grep {{version}}
test: limactl --version | grep {{version}}

0 comments on commit d43da7b

Please sign in to comment.