Skip to content

Commit 1e8a233

Browse files
committed
ci(os): run mkosi verification on hosted runner
1 parent 06edf62 commit 1e8a233

1 file changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/mkosi-reproducibility.yml renamed to .github/workflows/mkosi-build.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
name: mkosi cross-host reproducibility
5+
name: Verify mkosi reproducibility
66

77
on:
88
workflow_dispatch:
9-
pull_request:
10-
paths:
11-
- '.github/workflows/mkosi-reproducibility.yml'
12-
- 'os/mkosi/**'
13-
- 'os/image/**'
14-
- 'os/common/rootfs/**'
15-
- 'dstack/**'
169

1710
concurrency:
18-
group: mkosi-repro-${{ github.event.pull_request.number || github.ref }}
11+
group: mkosi-build-${{ github.ref }}
1912
cancel-in-progress: true
2013

2114
env:
@@ -30,12 +23,26 @@ env:
3023
jobs:
3124
cross-host:
3225
name: Compare with local mkosi baseline
33-
runs-on: yocto-builder
34-
timeout-minutes: 90
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 360
3528
permissions:
3629
contents: read
3730

3831
steps:
32+
# GitHub-hosted runners have enough CPU and memory for this build, but
33+
# their preinstalled SDKs consume most of the available disk. Remove only
34+
# those unused SDKs before checkout; the OS build itself remains hermetic.
35+
- name: Reclaim runner disk space
36+
run: |
37+
sudo rm -rf \
38+
/opt/ghc \
39+
/opt/hostedtoolcache/CodeQL \
40+
/usr/local/.ghcup \
41+
/usr/local/lib/android \
42+
/usr/local/share/boost \
43+
/usr/share/dotnet
44+
df -h /
45+
3946
- name: Checkout locally verified revision
4047
uses: actions/checkout@v5
4148
with:
@@ -78,7 +85,9 @@ jobs:
7885
7986
- name: Build without component cache
8087
env:
81-
JOBS: '64'
88+
# ubuntu-latest currently provides four vCPUs and 16 GiB of RAM.
89+
# Two compile jobs keep peak kernel/OVMF memory safely below that.
90+
JOBS: '2'
8291
run: |
8392
test -z "${DSTACK_DEV_CACHE_DIR:-}"
8493
./os/mkosi/build.sh image "$RUNNER_TEMP/mkosi-cross-host"

0 commit comments

Comments
 (0)