Some checks failed
CI / test (push) Successful in 1m9s
Build & Release / build-linux-x86_64 (push) Failing after 12s
Build & Release / release (push) Has been cancelled
Build & Release / build-linux-aarch64 (push) Has been cancelled
Build & Release / build-linux-armv7 (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs_on: ubuntu-latest
|
|
container:
|
|
image: rust:1.86-slim
|
|
steps:
|
|
- name: Debug workspace
|
|
run: |
|
|
echo "PWD: $(pwd)"
|
|
echo "HOME: $HOME"
|
|
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-unset}"
|
|
ls -la .
|
|
ls -la .. || true
|
|
find / -name "Cargo.toml" 2>/dev/null | head -5 || true
|
|
|
|
- name: Install git
|
|
run: apt-get update && apt-get install -y --no-install-recommends git
|
|
|
|
- name: Checkout code
|
|
run: |
|
|
git config --global --add safe.directory '*'
|
|
if [ -f "Cargo.toml" ]; then
|
|
echo "Code already in workspace"
|
|
else
|
|
echo "Cloning repo..."
|
|
git clone --depth 1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git /tmp/src
|
|
cp -a /tmp/src/. .
|
|
fi
|
|
ls -la Cargo.toml
|
|
|
|
- name: Run tests
|
|
run: cargo test -- --test-threads=1
|
|
|
|
- name: Build release
|
|
run: cargo build --release
|
|
|
|
- name: Check binary
|
|
run: |
|
|
ls -lh target/release/btest
|
|
target/release/btest --version
|