workflow: force host mode via self-hosted label #33
@@ -9,22 +9,25 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
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:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Preflight tools + toolchain
|
||||
# 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=).
|
||||
- name: Environment report
|
||||
run: |
|
||||
echo "user: $(whoami)"
|
||||
echo "home: $HOME"
|
||||
uname -a
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
for bin in rustc cargo cmake pkg-config; do
|
||||
if ! command -v $bin >/dev/null 2>&1; then
|
||||
echo "::error::$bin not found on PATH"
|
||||
exit 1
|
||||
for bin in rustc cargo cmake pkg-config claw-cargo; do
|
||||
if command -v $bin >/dev/null 2>&1; then
|
||||
echo "$(command -v $bin) $($bin --version 2>&1 | head -1)"
|
||||
else
|
||||
echo "MISSING: $bin"
|
||||
fi
|
||||
$bin --version | head -1
|
||||
done
|
||||
|
||||
- name: Build with clawstor cache
|
||||
@@ -33,7 +36,6 @@ jobs:
|
||||
with:
|
||||
workspace: '.'
|
||||
profile: 'dev'
|
||||
# Read-only from forks so a malicious PR can't poison the cache.
|
||||
no-upload: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
- name: Announce outcome
|
||||
|
||||
Reference in New Issue
Block a user