techtree/.forgejo/workflows/push.yml
Rahix 77abf68e3c ci: Add CI workflows
The push.yml workflow builds the manager and then places it in the $HOME
of the runner.  The issue.ym then uses the cached tool binary to update
the techtree information whenever any issue is changed.  This approach
of course only works as long as only one runner is connected to this
repository.

In the long run, this approach shall be replaced by a nix build of the
techtree-manager which is then cached by the OS instead of manually.
2025-05-22 09:49:33 +02:00

15 lines
473 B
YAML

on:
push:
jobs:
build:
runs-on: self-hosted-nixos-x86_64
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Build techtree manager tool
run: cd techtree-manager/ && nix-shell shell.nix --run "cargo build --release"
- name: Cache the techtree manager tool
run: |
mkdir -p ~/.cache/fafo-techtree
cp -v techtree-manager/target/release/techtree-manager ~/.cache/fafo-techtree/techtree-manager