Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create limactl template command #3

Draft
wants to merge 137 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
2c58f23
CI: integrate govulncheck
alexandear Feb 7, 2025
75221d6
Merge pull request #3205 from alexandear/ci-integrate-govulncheck
jandubois Feb 7, 2025
0b9508f
Refactor os and arch conditionals in Makefile
afbjorklund Feb 8, 2025
d6462e6
Make it possible to configure user shell
afbjorklund Feb 8, 2025
4814e87
Add example with containers on Podman Engine
afbjorklund Feb 9, 2025
7633c7e
Merge pull request #3207 from afbjorklund/user-shell
jandubois Feb 9, 2025
c8e98c6
build(deps): bump gotest.tools/v3 from 3.5.1 to 3.5.2
dependabot[bot] Feb 10, 2025
eca59e1
build(deps): bump github/codeql-action from 3.28.8 to 3.28.9
dependabot[bot] Feb 10, 2025
fbd1f45
Merge pull request #3212 from lima-vm/dependabot/go_modules/gotest.to…
jandubois Feb 10, 2025
87c5c46
Merge pull request #3214 from lima-vm/dependabot/github_actions/githu…
jandubois Feb 10, 2025
5f9522a
build(deps): bump golang.org/x/net in the golang-x group
dependabot[bot] Feb 11, 2025
edecc0d
build(deps): bump github.com/google/yamlfmt from 0.15.0 to 0.16.0
dependabot[bot] Feb 11, 2025
159939d
build(deps): bump golangci/golangci-lint-action from 6.3.0 to 6.3.2
dependabot[bot] Feb 11, 2025
5a587c2
Merge pull request #3218 from lima-vm/dependabot/github_actions/golan…
jandubois Feb 11, 2025
3e4cfa3
Merge pull request #3216 from lima-vm/dependabot/go_modules/golang-x-…
jandubois Feb 11, 2025
f3a8174
Merge pull request #3217 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 11, 2025
818ea95
Merge pull request #3209 from afbjorklund/examples-podman
AkihiroSuda Feb 11, 2025
7ce6a7a
Merge pull request #3206 from afbjorklund/guestagent-linux
AkihiroSuda Feb 11, 2025
f6a1754
CI: use golangci-lint 1.64.2
AkihiroSuda Feb 12, 2025
d4fb0fe
CI: use Go 1.24
AkihiroSuda Feb 12, 2025
0051841
Merge pull request #3222 from AkihiroSuda/go1.24
jandubois Feb 12, 2025
f8e9b65
build(deps): bump the k8s group across 1 directory with 3 updates
dependabot[bot] Feb 12, 2025
b2f0305
build(deps): bump github.com/goccy/go-yaml from 1.15.17 to 1.15.22
dependabot[bot] Feb 12, 2025
6f67598
Merge pull request #3118 from lima-vm/dependabot/go_modules/k8s-f0278…
jandubois Feb 12, 2025
188ebda
Merge pull request #3223 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 12, 2025
4c29b82
Fix incorrect firmware path suggestion for aarch64 in qemu.go
kairveeehh Feb 12, 2025
b3c2590
Merge pull request #3225 from kairveeehh/master
AkihiroSuda Feb 12, 2025
559ead5
qemu: revert "Restrict pessimization of M4 arch to macOS 15.2"
AkihiroSuda Feb 12, 2025
8c48cb3
qemu: upgrade Cortex-A72 to Cortex-A76
AkihiroSuda Feb 12, 2025
0582803
Merge pull request #3227 from AkihiroSuda/fix-3226
jandubois Feb 12, 2025
e289862
templates: update
AkihiroSuda Feb 12, 2025
cb99e9f
Merge pull request #3229 from AkihiroSuda/dev
jandubois Feb 12, 2025
4acc2fd
WSL: Create symlink at /mnt/lima-cidata
mook-as Jan 24, 2025
718ab89
build(deps): bump golangci/golangci-lint-action from 6.3.2 to 6.4.0
dependabot[bot] Feb 14, 2025
70f096f
build(deps): bump the k8s group with 3 updates
dependabot[bot] Feb 14, 2025
0d858d1
Merge pull request #3232 from lima-vm/dependabot/go_modules/k8s-d8aff…
jandubois Feb 14, 2025
135cf3e
Merge pull request #3231 from lima-vm/dependabot/github_actions/golan…
jandubois Feb 14, 2025
0f2fae0
install-containerd.sh: check RefuseManualStart property of dbus
AkihiroSuda Feb 14, 2025
bd2ad02
Makefile: allow setting KEEP_SYMBOLS=1
AkihiroSuda Feb 14, 2025
fa515c8
Merge pull request #3236 from AkihiroSuda/do-not-strip
jandubois Feb 14, 2025
8b8b267
Merge pull request #3235 from AkihiroSuda/tumbleweed
jandubois Feb 14, 2025
6c43132
go.mod: experimental integration of gomodjail (library sandbox)
AkihiroSuda Feb 14, 2025
fdaeeb0
splitted network page
kairveeehh Feb 15, 2025
b28413f
Merge pull request #3238 from AkihiroSuda/gomodjail
jandubois Feb 16, 2025
2c84e0c
Merge pull request #3233 from mook-as/wsl/lima-cidata
AkihiroSuda Feb 16, 2025
a6d723b
build(deps): bump golangci/golangci-lint-action from 6.4.0 to 6.5.0
dependabot[bot] Feb 17, 2025
5fd1a4a
build(deps): bump github.com/mdlayher/socket from 0.4.1 to 0.5.1
dependabot[bot] Feb 17, 2025
32ab380
Merge pull request #3243 from lima-vm/dependabot/github_actions/golan…
jandubois Feb 17, 2025
9270fee
Merge pull request #3249 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
d794c83
build(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1
dependabot[bot] Feb 17, 2025
ad88d23
build(deps): bump github.com/containerd/errdefs from 0.3.0 to 1.0.0
dependabot[bot] Feb 17, 2025
8571bad
build(deps): bump sigs.k8s.io/structured-merge-diff/v4
dependabot[bot] Feb 17, 2025
c61ca23
build(deps): bump github.com/go-openapi/jsonreference
dependabot[bot] Feb 17, 2025
c47955b
build(deps): bump github.com/emicklei/go-restful/v3
dependabot[bot] Feb 17, 2025
483044c
build(deps): bump github.com/mailru/easyjson from 0.7.7 to 0.9.0
dependabot[bot] Feb 17, 2025
1391f5d
build(deps): bump github.com/google/btree from 1.1.2 to 1.1.3
dependabot[bot] Feb 17, 2025
e4094cb
build(deps): bump github.com/pierrec/lz4/v4 from 4.1.17 to 4.1.22
dependabot[bot] Feb 17, 2025
d02286f
Merge pull request #3247 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
76b2897
Merge pull request #3248 from lima-vm/dependabot/go_modules/sigs.k8s.…
jandubois Feb 17, 2025
dab5788
Merge pull request #3253 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
0e33e4c
Merge pull request #3252 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
40fa309
Merge pull request #3251 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
c1db055
Merge pull request #3250 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
c12e815
Merge pull request #3245 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
d2fce41
Merge pull request #3246 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 17, 2025
ddf5aff
Use SSHAddress for SSH forwarding in QEMU
arixmkii Feb 16, 2025
7cd8352
build(deps): bump nick-fields/retry from 3.0.0 to 3.0.1
dependabot[bot] Feb 18, 2025
d7c86e6
build(deps): bump github.com/goccy/go-yaml from 1.15.22 to 1.15.23
dependabot[bot] Feb 18, 2025
f75e39c
Merge pull request #3239 from kairveeehh/master
AkihiroSuda Feb 18, 2025
c10c9a5
docs/config/network: follow-up
AkihiroSuda Feb 18, 2025
d1e946c
Merge pull request #3259 from AkihiroSuda/docs
jandubois Feb 18, 2025
5d7b33d
Merge pull request #3258 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 18, 2025
2a91cd9
Merge pull request #3257 from lima-vm/dependabot/github_actions/nick-…
jandubois Feb 18, 2025
d1ca301
go.mod: clean up gomodjail comments
AkihiroSuda Feb 18, 2025
b55086f
Merge pull request #3260 from AkihiroSuda/gomodjail
jandubois Feb 18, 2025
95f0262
Merge pull request #3254 from arixmkii/qemu-ssh-address
AkihiroSuda Feb 19, 2025
335e116
build(deps): bump actions/cache from 4.2.0 to 4.2.1
dependabot[bot] Feb 20, 2025
b58b58d
Merge pull request #3262 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 20, 2025
7c921f7
build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0
dependabot[bot] Feb 24, 2025
0ef8773
build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1
dependabot[bot] Feb 24, 2025
178f3e9
build(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1
dependabot[bot] Feb 24, 2025
9d7bf6b
build(deps): bump github/codeql-action from 3.28.9 to 3.28.10
dependabot[bot] Feb 24, 2025
de1d36d
Merge pull request #3274 from lima-vm/dependabot/github_actions/githu…
jandubois Feb 24, 2025
ea67913
Merge pull request #3272 from lima-vm/dependabot/github_actions/ossf/…
jandubois Feb 24, 2025
23809d3
Merge pull request #3271 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 24, 2025
d6a7354
Merge pull request #3273 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 24, 2025
baed5d2
networks.yaml: clean up outdated comments
AkihiroSuda Feb 24, 2025
3b14bee
Merge pull request #3276 from AkihiroSuda/cleanup-networks-yaml
jandubois Feb 24, 2025
e3fd241
Add optional loading of UEFI firmware via -bios parameter in QEMU
arixmkii Feb 8, 2025
26a3821
Merge pull request #3261 from arixmkii/bios-uefi
AkihiroSuda Feb 25, 2025
0c168d5
Only try to stop qemu-binfmt service on Alpine if it exists
jandubois Feb 25, 2025
c4b97d7
Merge pull request #3279 from jandubois/qemu-exists
AkihiroSuda Feb 26, 2025
2f1eece
build(deps): bump github.com/diskfs/go-diskfs from 1.5.0 to 1.5.1
dependabot[bot] Feb 26, 2025
b29addd
build(deps): bump actions/download-artifact from 4.1.8 to 4.1.9
dependabot[bot] Feb 26, 2025
83d971a
build(deps): bump nick-fields/retry from 3.0.1 to 3.0.2
dependabot[bot] Feb 26, 2025
984420f
Merge pull request #3281 from lima-vm/dependabot/go_modules/github.co…
jandubois Feb 26, 2025
1b72590
Merge pull request #3283 from lima-vm/dependabot/github_actions/nick-…
jandubois Feb 26, 2025
f9ffe3c
Merge pull request #3282 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 26, 2025
86cdf6c
refactor: Simplify yqutil.Join
alexandear Feb 26, 2025
e7cd5d7
build(deps): bump golang.org/x/crypto from 0.33.0 to 0.35.0
alexandear Feb 26, 2025
58d1985
Merge pull request #3285 from alexandear/go_modules/golang.org/x/cryp…
jandubois Feb 26, 2025
b85a356
Merge pull request #3284 from alexandear/refactor/simplify-yqutil-join
jandubois Feb 26, 2025
3c32012
Don't try to unregister an instance that failed validation
jandubois Feb 26, 2025
8e14243
Don't use the result of yaml.Unmarshal after it returns an error
jandubois Feb 26, 2025
3ce95d1
refactor: Simplify slice concatenation with slices.Concat
alexandear Feb 26, 2025
0beb0ad
Merge pull request #3287 from alexandear/refactor/slices-concat
jandubois Feb 26, 2025
b1823a7
build(deps): bump actions/attest-build-provenance from 2.2.0 to 2.2.1
dependabot[bot] Feb 27, 2025
d7bf211
Merge pull request #3288 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 27, 2025
638a524
build(deps): bump github.com/containerd/containerd from 1.7.25 to 1.7.26
dependabot[bot] Feb 27, 2025
83337b5
Merge pull request #3286 from jandubois/robust-delete
AkihiroSuda Feb 27, 2025
52f61f1
Merge pull request #3289 from lima-vm/dependabot/go_modules/github.co…
AkihiroSuda Feb 27, 2025
af62e92
build(deps): bump actions/cache from 4.2.1 to 4.2.2
dependabot[bot] Feb 28, 2025
4ddbef6
build(deps): bump actions/attest-build-provenance from 2.2.1 to 2.2.2
dependabot[bot] Feb 28, 2025
4484591
Merge pull request #3290 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 28, 2025
439c9de
Merge pull request #3291 from lima-vm/dependabot/github_actions/actio…
jandubois Feb 28, 2025
22d86cc
Enable Integration tests in Windows CI
arixmkii Feb 25, 2025
22f615e
chore: Remove redundant build tags
alexandear Mar 2, 2025
d1f353a
Merge pull request #3295 from alexandear/chore-redundant-build-tags
jandubois Mar 2, 2025
1f78c29
build(deps): bump github.com/cheggaaa/pb/v3 from 3.1.6 to 3.1.7
dependabot[bot] Mar 3, 2025
fd1552d
Add "Copyright The Lima Authors" boilterplate
AkihiroSuda Mar 1, 2025
6c92f42
Merge pull request #3293 from AkihiroSuda/ltag
jandubois Mar 3, 2025
cacbbc6
Merge pull request #3296 from lima-vm/dependabot/go_modules/github.co…
jandubois Mar 3, 2025
bfac818
Merge pull request #3280 from arixmkii/fix-windows-ci
AkihiroSuda Mar 3, 2025
8f143ae
Assemble templates using the new basedOn setting
jandubois Jan 1, 2025
08c3238
Update locator functions to handle Windows file names
jandubois Jan 5, 2025
ce68b7d
Rename basedOn → base
jandubois Jan 3, 2025
e8c2912
Mark the limactl template command and template embedding as experimental
jandubois Jan 5, 2025
be4a666
Upgrade additionalDisk entries from string to map when adding fields
jandubois Jan 9, 2025
a51109b
Add --embed-all option to `limactl tmpl copy` command
jandubois Feb 10, 2025
fb06e67
Add optional support for specifying digests for template locators
jandubois Feb 16, 2025
32b9ccd
Template validation needs to embed all bases first
jandubois Feb 16, 2025
6dabf34
Make test-misc template based on ubuntu-22.04 template
jandubois Feb 16, 2025
f364e99
Make sure that all the standard templates are embedded correctly
jandubois Feb 17, 2025
cd79112
Throw validation error when a template digest is specified
jandubois Feb 19, 2025
0040c29
Document that template embedding is experimental
jandubois Feb 26, 2025
49af120
Add copyright headers to new files
jandubois Mar 3, 2025
5602b96
Adjust for recent changes to test-templates.sh
jandubois Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Initialize CodeQL
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -48,6 +48,6 @@ jobs:
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
category: "/language:${{matrix.language}}"
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Make darwin artifacts
run: make artifacts-darwin
- name: "Upload artifacts"
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: artifacts-darwin
path: _artifacts/
Expand All @@ -60,13 +60,13 @@ jobs:
attestations: write # for provenances
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
name: artifacts-darwin
path: _artifacts/
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Install gcc-x86-64-linux-gnu
run: |
sudo apt-get update
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- - -
Release manager: [ADD YOUR NAME HERE] (@[ADD YOUR GITHUB ID HERE])
EOF
- uses: actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # v2.2.0
- uses: actions/attest-build-provenance@bd77c077858b8d561b7a36cbe48ef4cc642ca39d # v2.2.2
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
with:
subject-path: _artifacts/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -51,7 +51,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v3.pre.node20
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v3.pre.node20
with:
name: SARIF file
path: results.sarif
Expand All @@ -60,6 +60,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
sarif_file: results.sarif
113 changes: 75 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Verify generated files
run: make install-tools generate check-generated
- name: Run golangci-lint
uses: golangci/golangci-lint-action@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
with:
version: v1.62.0
version: v1.64.2
args: --verbose --timeout=10m
- name: Run yamllint
run: yamllint .
Expand All @@ -66,6 +66,19 @@ jobs:
- name: Check licenses
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
- name: Install ltag
# The GitHub repo has been moved from kunalkushwaha/ltag to containerd/ltag,
# but the Go module name is not changed yet: https://github.com/containerd/ltag/issues/17
run: go install github.com/kunalkushwaha/[email protected]
- name: Check license boilerplates
run: ltag -t ./hack/ltag --check -v

security:
name: "Vulncheck"
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4

spell:
name: "Spell check"
Expand All @@ -89,7 +102,7 @@ jobs:
fail-fast: false
matrix:
# For non-Homebrew we have to support an old release of Go
go-version: ["1.22.x", "1.23.x"]
go-version: ["1.23.x", "1.24.x"]
steps:
- name: Install test dependencies
run: |
Expand Down Expand Up @@ -122,12 +135,10 @@ jobs:
- name: Enable WSL2
run: |
wsl --set-default-version 2
# Manually install the latest kernel from MSI
Invoke-WebRequest -Uri "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" -OutFile "wsl_update_x64.msi"
$pwd = (pwd).Path
Start-Process msiexec.exe -Wait -ArgumentList "/I $pwd\wsl_update_x64.msi /quiet"
wsl --shutdown
wsl --update
wsl --status
wsl --version
wsl --list --online
- name: Install WSL2 distro
timeout-minutes: 1
Expand All @@ -148,27 +159,20 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Unit tests
run: go test -v ./...
- name: Make
run: make
# FIXME: Windows CI began to fail on Oct 21, 2024.
# Something seems to have changed between win22/20241006.1 and win22/20241015.1.
# https://github.com/lima-vm/lima/issues/2775
# - name: Smoke test
# # Make sure the path is set properly and then run limactl
# run: |
# $env:Path = 'C:\Program Files\Git\usr\bin;' + $env:Path
# Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $env:Path
# .\_output\bin\limactl.exe start template://experimental/wsl2
# # TODO: run the full integration tests
# - name: Debug
# if: always()
# run: type C:\Users\runneradmin\.lima\wsl2\ha.stdout.log
# - name: Debug
# if: always()
# run: type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
- name: Integration tests (WSL2, Windows host)
run: |
$env:Path = "$pwd\_output\bin;" + 'C:\Program Files\Git\usr\bin;' + $env:Path
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $env:Path
$env:MSYS2_ENV_CONV_EXCL='HOME_HOST;HOME_GUEST'
$env:HOME_HOST=$(cygpath.exe "$env:USERPROFILE")
$env:HOME_GUEST="/mnt$env:HOME_HOST"
$env:LIMACTL_CREATE_ARGS='--vm-type=wsl2 --mount-type=wsl2 --containerd=system'
bash.exe -c "./hack/test-templates.sh templates/experimental/wsl2.yaml"

qemu:
name: "Integration tests (QEMU, macOS host)"
Expand All @@ -181,7 +185,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Unit tests
run: go test -v ./...
- name: Make
Expand Down Expand Up @@ -211,7 +215,7 @@ jobs:
- name: "Show cache"
run: ./hack/debug-cache.sh
- name: "Test default.yaml"
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with:
timeout_minutes: 30
retry_on: error
Expand Down Expand Up @@ -249,10 +253,11 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
# To avoid "failed to load YAML file \"templates/experimental/riscv64.yaml\": can't parse builtin Lima version \"3f3a6f6\": 3f3a6f6 is not in dotted-tri format"
fetch-depth: 0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Make
run: make
- name: Install
Expand All @@ -275,7 +280,7 @@ jobs:
- name: "Show cache"
run: ./hack/debug-cache.sh
- name: "Test"
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with:
timeout_minutes: 30
retry_on: error
Expand Down Expand Up @@ -303,8 +308,8 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
go-version: 1.24.x
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: ~/.cache/lima/download
key: ${{ runner.os }}-colima-${{ matrix.colima-version }}
Expand All @@ -329,7 +334,7 @@ jobs:
- name: "Show cache"
run: ./hack/debug-cache.sh
- name: "Test"
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with:
timeout_minutes: 30
retry_on: error
Expand All @@ -348,7 +353,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Make
run: make
- name: Install
Expand Down Expand Up @@ -381,7 +386,7 @@ jobs:
# Set -count=1 to disable cache
run: go test -v -count=1 ./pkg/networks/...
- name: Test socket_vmnet
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with:
timeout_minutes: 30
retry_on: error
Expand Down Expand Up @@ -411,7 +416,7 @@ jobs:
filter: tree:0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Cache image used by ${{ matrix.oldver }}/examples/ubuntu-lts.yaml
uses: ./.github/actions/setup_cache_for_template
with:
Expand All @@ -423,7 +428,7 @@ jobs:
# We revert back to 8.2.1, which seems to work fine
./hack/brew-install-version.sh qemu 8.2.1
- name: Test
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with:
timeout_minutes: 30
retry_on: error
Expand All @@ -448,7 +453,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Make
run: make
- name: Install
Expand All @@ -469,3 +474,35 @@ jobs:
uses: ./.github/actions/upload_failure_logs_if_exists
with:
suffix: ${{ matrix.template }}

# gomodjail is a library sandbox for Go
# https://github.com/AkihiroSuda/gomodjail
#
# This is an early experiment.
# CI failures that only occurs with gomodjail shall not block merging PRs.
gomodjail:
name: "gomodjail (experimental; failures shall not block merging PRs)"
runs-on: macos-15-large # Intel
timeout-minutes: 30
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.24.x
- name: Install gomodjail
run: |
set -eux -o pipefail
git clone https://github.com/AkihiroSuda/gomodjail
cd gomodjail
make binaries install
- name: Install Lima
# gomodjail depends on symbols
run: make KEEP_SYMBOLS=1 binaries install
- name: Cache image used by templates/default.yaml
uses: ./.github/actions/setup_cache_for_template
with:
template: templates/default.yaml
- name: Smoke test
run: gomodjail run --go-mod=./go.mod -- limactl start --tty=false
Loading
Loading