Skip to content

Commit 949c9c6

Browse files
committed
.github/workflows/test.yml: Fix injecting no_timer_check to kernel cmdline
`template:` refers to installed templates. So, it needs to be injected before executing `make install`. Signed-off-by: Norio Nomura <[email protected]>
1 parent e21b634 commit 949c9c6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ jobs:
227227
run: go test -v ./...
228228
- name: Make
229229
run: make
230+
- name: "Inject `no_timer_check` to kernel cmdline"
231+
# workaround to https://github.com/lima-vm/lima/issues/84
232+
run: |
233+
export PATH="$PWD/_output/bin:$PATH"
234+
./hack/inject-cmdline-to-template.sh _output/share/lima/templates/_images/ubuntu.yaml no_timer_check
230235
- name: Install
231236
run: sudo make install
232237
- name: Validate jsonschema
@@ -243,9 +248,6 @@ jobs:
243248
run: brew install qemu bash coreutils w3m socat
244249
- name: "Adjust LIMACTL_CREATE_ARGS"
245250
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu" >>$GITHUB_ENV
246-
- name: "Inject `no_timer_check` to kernel cmdline"
247-
# workaround to https://github.com/lima-vm/lima/issues/84
248-
run: ./hack/inject-cmdline-to-template.sh templates/_images/ubuntu.yaml no_timer_check
249251
- name: Cache image used by default.yaml
250252
uses: ./.github/actions/setup_cache_for_template
251253
with:
@@ -426,13 +428,15 @@ jobs:
426428
go-version: 1.25.x
427429
- name: Make
428430
run: make
431+
- name: "Inject `no_timer_check` to kernel cmdline"
432+
# workaround to https://github.com/lima-vm/lima/issues/84
433+
run: |
434+
export PATH="$PWD/_output/bin:$PATH"
435+
./hack/inject-cmdline-to-template.sh _output/share/lima/templates/_images/ubuntu.yaml no_timer_check
429436
- name: Install
430437
run: sudo make install
431438
- name: "Adjust LIMACTL_CREATE_ARGS"
432439
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu --network=lima:shared" >>$GITHUB_ENV
433-
- name: "Inject `no_timer_check` to kernel cmdline"
434-
# workaround to https://github.com/lima-vm/lima/issues/84
435-
run: ./hack/inject-cmdline-to-template.sh templates/_images/ubuntu.yaml no_timer_check
436440
- name: Cache image used by default .yaml
437441
uses: ./.github/actions/setup_cache_for_template
438442
with:

0 commit comments

Comments
 (0)