Files
Siavash Sameni fd148acffe
All checks were successful
CI / test (push) Successful in 1m10s
Build & Release / release (push) Successful in 2m11s
Remove all Node.js actions, use pure shell for CI/CD
The act runner has no Node.js in container jobs. Replace
actions/upload-artifact and actions/download-artifact with
direct Gitea API uploads from a single job that builds all
three architectures sequentially.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 14:31:39 +04:00

36 lines
815 B
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: Install git
run: apt-get update && apt-get install -y --no-install-recommends git
- name: Ensure code is present
run: |
git config --global --add safe.directory '*'
if [ ! -f "Cargo.toml" ]; then
git clone --depth 1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git /tmp/src
cp -a /tmp/src/. .
fi
- 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