From 7eede85bec920d1910b3c31f4322e0f2a3376850 Mon Sep 17 00:00:00 2001 From: Miles Parfitt Date: Fri, 8 Mar 2024 15:18:33 +1000 Subject: [PATCH] Update github actions and readme --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 5 ++--- .github/workflows/release.yml | 2 +- README.md | 30 +++++++++++++++++++++++++----- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6dd6e9a..0acf0cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,6 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: asdf_plugin_test - uses: asdf-vm/actions/plugin-test@v2 + uses: asdf-vm/actions/plugin-test@v3 with: command: limactl --version diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f787797..9a4e9c8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Install asdf dependencies - uses: asdf-vm/actions/install@v2 + uses: asdf-vm/actions/install@v3 - name: Run ShellCheck run: scripts/shellcheck.bash @@ -26,11 +26,10 @@ jobs: uses: actions/checkout@v3 - name: Install asdf dependencies - uses: asdf-vm/actions/install@v2 + uses: asdf-vm/actions/install@v3 - name: List file to shfmt run: shfmt -f . - name: Run shfmt run: scripts/shfmt.bash - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5587ba..3b7803f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,6 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: GoogleCloudPlatform/release-please-action@v3 + - uses: GoogleCloudPlatform/release-please-action@v4 with: release-type: simple diff --git a/README.md b/README.md index 46c99eb..19be7cc 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ # asdf-lima [![Build](https://github.com/CrouchingMuppet/asdf-lima/actions/workflows/build.yml/badge.svg)](https://github.com/CrouchingMuppet/asdf-lima/actions/workflows/build.yml) [![Lint](https://github.com/CrouchingMuppet/asdf-lima/actions/workflows/lint.yml/badge.svg)](https://github.com/CrouchingMuppet/asdf-lima/actions/workflows/lint.yml) - -[Lima](https://github.com/lima-vm/lima) plugin for the [asdf version manager](https://asdf-vm.com). +[Lima](https://github.com/lima-vm/lima) plugin for [mise-en-place](https://github.com/jdx/mise) and the [asdf version manager](https://asdf-vm.com). @@ -16,12 +15,16 @@ # Dependencies -- `qemu-img`: [QEMU disk image utility](https://manpages.ubuntu.com/manpages/focal/man1/qemu-img.1.html) +- `qemu-img`: [QEMU disk image utility](https://manpages.ubuntu.com/manpages/focal/man1/qemu-img.1.html) `brew install qemu` on macOS. - `bash`, `curl`: generic POSIX utilities. # Install -Plugin: +mise plugin: + +Mise automatically installs plugins. If you want to use mise to install the `lima` dependency use: + +asdf plugin: ```shell asdf plugin add lima @@ -29,7 +32,24 @@ asdf plugin add lima asdf plugin add lima https://github.com/CrouchingMuppet/asdf-lima.git ``` -Lima: +Lima via mise: + +```shell +# Show all installable versions +mise list-all lima + +# Set a version globally (on your ~/.tool-versions file) +mise global lima latest + +# Now limactl and lima commands are available +limactl start +lima uname -a +``` + +Check [mise-en-place](https://mise.jdx.dev/) documentation for more instructions on how to +install & manage versions. + +Lima via asdf: ```shell # Show all installable versions