File tree 1 file changed +33
-4
lines changed
1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ permissions:
11
11
contents : read
12
12
13
13
jobs :
14
- unit :
14
+ cgroup-v2 :
15
+ name : " cgroup v2 (Ubuntu 24.04)"
15
16
timeout-minutes : 10
16
17
strategy :
17
18
fail-fast : false
18
19
matrix :
19
- os : [ubuntu-24.04]
20
20
go-version : [1.23.x, 1.24.x]
21
21
race : ["-race", ""]
22
- runs-on : ${{ matrix.os }}
22
+ runs-on : ubuntu-24.04
23
23
24
24
steps :
25
25
- uses : actions/checkout@v4
28
28
go-version : ${{ matrix.go-version }}
29
29
- run : go test -timeout 3m ${{ matrix.race }} -v ./...
30
30
31
+ cgroup-v1 :
32
+ name : " cgroup v1 (AlmaLinux 8)"
33
+ timeout-minutes : 20
34
+ runs-on : ubuntu-24.04
35
+ steps :
36
+ - uses : actions/checkout@v4
37
+
38
+ - uses : lima-vm/lima-actions/setup@v1
39
+ id : lima-actions-setup
40
+
41
+ - uses : actions/cache@v4
42
+ with :
43
+ path : ~/.cache/lima
44
+ key : lima-${{ steps.lima-actions-setup.outputs.version }}
45
+
46
+ - name : " Start VM"
47
+ # --plain is set to disable file sharing, port forwarding, built-in containerd, etc. for faster start up
48
+ run : limactl start --plain --name=default template://almalinux-8
49
+
50
+ - name : " Initialize VM"
51
+ run : |
52
+ set -eux -o pipefail
53
+ limactl cp -r . default:/tmp/cgroups
54
+ lima sudo dnf install -y golang
55
+
56
+ - name : " Run unit tests"
57
+ run : LIMA_WORKDIR=/tmp/cgroups lima sudo GOTOOLCHAIN=auto go test -v ./...
58
+
31
59
all-done :
32
60
needs :
33
- - unit
61
+ - cgroup-v2
62
+ - cgroup-v1
34
63
runs-on : ubuntu-24.04
35
64
steps :
36
65
- run : echo "All jobs completed"
You can’t perform that action at this time.
0 commit comments