Update README with detailed usage instructions; switch workflows to MiniServ-nix-runner
cargo build / build (push) Successful in 6s
cargo test / test (push) Failing after 7s
cargo test / publish (push) Skipped

This commit is contained in:
2026-08-20 19:02:13 -05:00
parent 01fd9f58e5
commit 6d063974e5
2 changed files with 31 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ on:
jobs:
build:
runs-on: nix
env:
CARGO_TARGET_DIR: target
steps:
- name: Checkout repository
+28
View File
@@ -6,11 +6,15 @@ on:
branches:
- main
- master
tags:
- v*
pull_request:
jobs:
test:
runs-on: nix
env:
CARGO_TARGET_DIR: target
steps:
- name: Checkout repository
@@ -18,3 +22,27 @@ jobs:
- name: Run tests (Nix dev shell)
run: nix develop --extra-experimental-features "nix-command flakes" -c cargo test --verbose
publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
runs-on: nix
env:
CARGO_TARGET_DIR: target
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Cargo registry (Gitea)
run: |
mkdir -p ~/.cargo
cat > ~/.cargo/config.toml << 'EOF'
[registries.gitea]
index = "sparse+https://git.moturpin.com/api/packages/Matsubaa/cargo/"
EOF
- name: Publish to Gitea Cargo registry
env:
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --verbose