mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
Exercise the pen cursor on the final verified Linux build artifact
This commit is contained in:
1 parent
5751f0f462
commit
3d33abbe3d
1 file changed
+10
-10
@@ -16,21 +16,21 @@ jobs:
|
||||
- name: Install compositor and VectorCraft
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_RUN: "46343667754"
|
||||
RELEASE_COMMIT: acaa80fc42aaa766b60ed7bf2f6a0b54852331c1
|
||||
CONTROL_SHA256: b9bffca292811492ec97bc99d0a92840ac22d704686688be5a5697fe7746936f
|
||||
DATA_SHA256: ba8307b65c38f6fd4a9d19b47be48f95e38676c332a940e4e0d7fdee6b130310
|
||||
RELEASE_RUN: "46483933055"
|
||||
RELEASE_COMMIT: 89be1ce0f3f7a5c8bda5c024457295dd5c496261
|
||||
ARTIFACT_DIGEST: sha256:41a799483ef3a1aa06d7cfc7eb187173d257905bf30f88d39e6e1a6eac171e19
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y grim sway python3-pil libwayland-dev libwayland-bin
|
||||
test "$(gh run view "$RELEASE_RUN" --json headSha --jq .headSha)" = "$RELEASE_COMMIT"
|
||||
gh run download "$RELEASE_RUN" -n release-linux-x86_64 -D "$RUNNER_TEMP/bundle"
|
||||
id="$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$RELEASE_RUN/artifacts" --jq '.artifacts[] | select(.name == "release-linux-x86_64") | .id')"
|
||||
gh api "repos/$GITHUB_REPOSITORY/actions/artifacts/$id/zip" > "$RUNNER_TEMP/bundle.zip"
|
||||
echo "${ARTIFACT_DIGEST#sha256:} $RUNNER_TEMP/bundle.zip" | sha256sum --check
|
||||
unzip -q "$RUNNER_TEMP/bundle.zip" '*-linux-x86_64.deb' -d "$RUNNER_TEMP/bundle"
|
||||
deb="$(find "$RUNNER_TEMP/bundle" -name '*-linux-x86_64.deb' -print -quit)"
|
||||
test -f "$deb"
|
||||
# The release adds an embedded signature after the build job. The metadata and
|
||||
# installed filesystem must still match the exact signed package.
|
||||
test "$(ar p "$deb" control.tar.gz | sha256sum | cut -d' ' -f1)" = "$CONTROL_SHA256"
|
||||
test "$(ar p "$deb" data.tar.gz | sha256sum | cut -d' ' -f1)" = "$DATA_SHA256"
|
||||
for member in control.tar.gz data.tar.gz; do
|
||||
echo "$member $(ar p "$deb" "$member" | sha256sum)" >> "$GITHUB_STEP_SUMMARY"
|
||||
done
|
||||
sudo apt-get install -y "$deb"
|
||||
- name: Capture Pen pointer on the canvas
|
||||
run: dbus-run-session -- bash .github/qa/wayland-pen.sh
|
||||
|
||||
Reference in new issue
Block a user