Skip to content

Commit aef7982

Browse files
committed
ci(os): verify canonical squashfs baseline
1 parent 558a1bd commit aef7982

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

.github/workflows/mkosi-build.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ env:
1515
# These values were produced by two cache-disabled local builds. The job
1616
# checks out this exact source revision so the embedded Git revision and
1717
# SOURCE_DATE_EPOCH are identical. Refresh all three values together.
18-
BASELINE_REVISION: 98df4d5403db271b72cfaae3be742a577f1a2668
19-
BARE_SHA256: d36fb8862ba8ebe5c99e0481e4e3e67ffc12240950ad28ba8c24dd5c2be5756e
20-
UKI_SHA256: ad07b150fa7541134984ae3de8a320506bc2e5a07893441d3ccb95f3ab5db0f2
18+
BASELINE_REVISION: 558a1bd426f84003ade1d37f3b1800e10f881e8e
19+
BARE_SHA256: eb39bd4a447abb30be3a06839ffa5e6eb4cc54e4a75f672158d53d98236519cd
20+
UKI_SHA256: 3126d09038a6f231b41218a65a250e05ac51da13f8629dac5607989434e220c3
2121

2222
jobs:
2323
cross-host:
@@ -91,16 +91,6 @@ jobs:
9191
cd "$RUNNER_TEMP/mkosi-cross-host/out/prod"
9292
tar -xOf dstack-0.6.0.tar.gz dstack-0.6.0/sha256sum.txt
9393
tar -xOf dstack-0.6.0.tar.gz dstack-0.6.0/metadata.json
94-
mkdir "$RUNNER_TEMP/rootfs-inspect"
95-
sudo unsquashfs -d "$RUNNER_TEMP/rootfs-inspect" -o 1048576 \
96-
dstack-0.6.0/rootfs.img.parted.verity >/dev/null
97-
sudo chown -R "$USER:$USER" "$RUNNER_TEMP/rootfs-inspect"
98-
(cd "$RUNNER_TEMP/rootfs-inspect" && \
99-
find . -type f -print0 | sort -z | xargs -0 sha256sum) \
100-
> rootfs-files.sha256
101-
(cd "$RUNNER_TEMP/rootfs-inspect" && \
102-
find . -printf '%y %m %u:%g %p -> %l\n' | sort) \
103-
> rootfs-tree.txt
10494
sha256sum dstack-0.6.0.tar.gz dstack-0.6.0-uki.tar.gz \
10595
| tee cross-host.sha256
10696
printf '%s %s\n' "$BARE_SHA256" dstack-0.6.0.tar.gz \
@@ -113,8 +103,5 @@ jobs:
113103
uses: actions/upload-artifact@v4
114104
with:
115105
name: mkosi-cross-host-sha256
116-
path: |
117-
${{ runner.temp }}/mkosi-cross-host/out/prod/cross-host.sha256
118-
${{ runner.temp }}/mkosi-cross-host/out/prod/rootfs-files.sha256
119-
${{ runner.temp }}/mkosi-cross-host/out/prod/rootfs-tree.txt
106+
path: ${{ runner.temp }}/mkosi-cross-host/out/prod/cross-host.sha256
120107
retention-days: 30

0 commit comments

Comments
 (0)