-
Notifications
You must be signed in to change notification settings - Fork 32
Stephan Hageboeck edited this page Feb 17, 2023
·
14 revisions
Some information on the GPU-capable CI runner for github.
On itscrd-vgpu*
,
$ systemctl --type=service | grep actions
actions.runner.madgraph5-madgraph4gpu.vGPU-Alma9-1.service loaded active running GitHub Actions Runner (madgraph5-madgraph4gpu.vGPU-Alma9-1)
actions.runner.madgraph5-madgraph4gpu.vGPU-Alma9-2.service loaded active running GitHub Actions Runner (madgraph5-madgraph4gpu.vGPU-Alma9-2)
$ systemctl status actions.runner.madgraph5-madgraph4gpu.vGPU-Alma9-1
● actions.runner.madgraph5-madgraph4gpu.vGPU-Alma9-1.service - GitHub Actions Runner (madgraph5-madgraph4gpu.vGPU-Alma9-1)
Loaded: loaded (...)
Active: active (running) since Fri 2023-02-17 14:41:18 CET; 37min ago
- Add yourself to the group
CI
on itscrd-vgpu* - Go to
cd /home/CI/runner[12]/_work
- Download actions runner from github
- Unpack
- configure using e.g. `./config.sh --unattended --url ${repoURL} --token ${githubToken} --replace --name ${runnerName}
- Test using
./run.sh
- Use
./svc.sh install
- Patch environment of service. The runner needs
Environment="GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY=1"
, add this to service file like/etc/systemd/system/actions.runner.madgraph5-madgraph4gpu.vGPU-Alma9-1.service
systemctl daemon-reload
- Fix SELinux context:
chcon system_u:object_r:usr_t:s0 /home/CI/runner2/runsvc.sh
- Start service as above