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>
36 lines
815 B
YAML
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
|