[Unit] # Second act_runner instance, dedicated to the Rust build template. # # Why a second instance instead of one more label on the existing runner: # act_runner has a single `runner.envs` block per process, and it does not # expose the job's runs-on label to the workflow (no RUNNER_LABELS variable). # So a label can only select a *template* if it selects a *runner* whose envs # name that template. One label per runner instance is the only wiring that # actually routes. # # Provisioned by scripts/install-rust-runner.sh. Description=Gitea Act Runner (rust-build) After=network-online.target vmware-host.service Wants=network-online.target [Service] Type=simple User=ci-runner WorkingDirectory=/var/lib/ci/runner-rust Environment="PYTHONIOENCODING=utf-8" Environment="CI_ROOT=/var/lib/ci" Environment="CI_TEMPLATES=/var/lib/ci/templates" Environment="CI_BUILD_VMS=/var/lib/ci/build-vms" Environment="CI_ARTIFACTS=/var/lib/ci/artifacts" Environment="CI_KEYS=/etc/ci/keys" ExecStart=/opt/ci/act_runner/act_runner daemon --config /var/lib/ci/runner-rust/config.yaml Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target