workflow: force host mode via self-hosted label
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Failing after 5s

ubuntu-latest routes to container mode in act_runner even with the
:host suffix on the runner labels. Explicit self-hosted forces
host-mode where /usr/local/bin/claw-cargo + per-runner tls_dir are
visible.
This commit is contained in:
Omar Sobh
2026-07-13 01:37:45 -07:00
parent cb9d3d5180
commit 4d309137e7
+13 -11
View File
@@ -9,22 +9,25 @@ on:
jobs: jobs:
build: build:
name: Cargo build (clawstor-cached) name: Cargo build (clawstor-cached)
runs-on: ubuntu-latest # host runner — cargo/cmake pre-installed # Force host mode via self-hosted label — `ubuntu-latest` in
# act_runner defaults to container mode which hides
# /usr/local/bin/claw-cargo and the per-runner tls_dir.
runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Preflight tools + toolchain - name: Environment report
# Host runner: cmake/gcc/pkg-config come from the OS,
# cargo/rustup come from the act_runner user's ~/.cargo/bin
# (already on PATH via systemd unit Environment=).
run: | run: |
echo "user: $(whoami)"
echo "home: $HOME"
uname -a
echo "$HOME/.cargo/bin" >> $GITHUB_PATH echo "$HOME/.cargo/bin" >> $GITHUB_PATH
for bin in rustc cargo cmake pkg-config; do for bin in rustc cargo cmake pkg-config claw-cargo; do
if ! command -v $bin >/dev/null 2>&1; then if command -v $bin >/dev/null 2>&1; then
echo "::error::$bin not found on PATH" echo "$(command -v $bin) $($bin --version 2>&1 | head -1)"
exit 1 else
echo "MISSING: $bin"
fi fi
$bin --version | head -1
done done
- name: Build with clawstor cache - name: Build with clawstor cache
@@ -33,7 +36,6 @@ jobs:
with: with:
workspace: '.' workspace: '.'
profile: 'dev' profile: 'dev'
# Read-only from forks so a malicious PR can't poison the cache.
no-upload: ${{ github.event_name == 'pull_request' }} no-upload: ${{ github.event_name == 'pull_request' }}
- name: Announce outcome - name: Announce outcome