Skip to content

Commit ab97dd1

Browse files
Mossakaclaude
andcommitted
fix: add awf build steps before chroot version tests
The smoke-chroot workflow was trying to run `sudo -E awf` commands before the awf CLI was built and installed. This adds the necessary npm ci, npm run build, and awf binary installation steps before the chroot version tests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 864fe06 commit ab97dd1

2 files changed

Lines changed: 22 additions & 26 deletions

File tree

.github/workflows/smoke-chroot.lock.yml

Lines changed: 9 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-chroot.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,19 @@ steps:
5858
echo "HOST_GO_VERSION=$(go version 2>&1 | head -1)"
5959
} > /tmp/gh-aw/chroot-test/host-versions.env
6060
cat /tmp/gh-aw/chroot-test/host-versions.env
61+
- name: Install awf dependencies
62+
run: npm ci
63+
- name: Build awf
64+
run: npm run build
65+
- name: Install awf binary (local)
66+
run: |
67+
WORKSPACE_PATH="${GITHUB_WORKSPACE:-$(pwd)}"
68+
NODE_BIN="$(command -v node)"
69+
sudo tee /usr/local/bin/awf > /dev/null <<EOF
70+
#!/bin/bash
71+
exec "${NODE_BIN}" "${WORKSPACE_PATH}/dist/cli.js" "\$@"
72+
EOF
73+
sudo chmod +x /usr/local/bin/awf
6174
- name: Build local containers
6275
run: |
6376
echo "=== Building local containers ==="

0 commit comments

Comments
 (0)