workflow: force host mode via self-hosted label
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Failing after 5s
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user