{"id":15661112,"url":"https://github.com/ioquatix/github-actions-bin","last_synced_at":"2025-11-12T23:03:37.014Z","repository":{"id":40773285,"uuid":"224880744","full_name":"ioquatix/github-actions-bin","owner":"ioquatix","description":"Arch Linux package for GitHub Actions remote runner.","archived":false,"fork":false,"pushed_at":"2025-07-25T05:40:50.000Z","size":70,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-25T09:45:48.552Z","etag":null,"topics":["arch-linux","github-actions","gpu","systemd-nspawn"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ioquatix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T15:40:43.000Z","updated_at":"2025-07-25T05:40:54.000Z","dependencies_parsed_at":"2022-09-18T18:00:10.738Z","dependency_job_id":null,"html_url":"https://github.com/ioquatix/github-actions-bin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ioquatix/github-actions-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fgithub-actions-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fgithub-actions-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fgithub-actions-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fgithub-actions-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioquatix","download_url":"https://codeload.github.com/ioquatix/github-actions-bin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fgithub-actions-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272453296,"owners_count":24937467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux","github-actions","gpu","systemd-nspawn"],"created_at":"2024-10-03T13:25:55.130Z","updated_at":"2025-11-12T23:03:29.877Z","avatar_url":"https://github.com/ioquatix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions\n\nProvides an Arch Linux package for the GitHub Actions remote runner.\n\n## Motivation\n\nI wanted to use GitHub Actions remote runner to access the GPU on my server. Because of the security risks of having a public runner instance, I put it inside a `systemd-nspawn` container. I wanted a convenient way to install the GitHub Actions runner, so I decided to package it up.\n\n## Installation\n\nFirst, clone the repository:\n\n\tgit clone https://aur.archlinux.org/github-actions.git\n\nThe build and install it:\n\n\tcd github-actions\n\tmakepkg -sCcfi\n\nConfigure the daemon:\n\n\tsudo -u github-actions -s bash\n\tcd /var/lib/github-actions\n\tbin/Runner.Listener configure --token YOUR_RUNNER_TOKEN\n\texit\n\nThen start it up:\n\n\tsudo systemctl enable --now github-actions\n\n## Usage\n\nYou might want to combine this with a container. To create a container (including some suggested packages):\n\n\tpacstrap -c github-actions base ruby clang pkg-build vim\n\nThen, import it:\n\n\tmachinectl import-fs github-actions\n\nConfigure it:\n\n\t$ cat /etc/systemd/nspawn/github-actions.nspawn \n\t[Network]\n\tPrivate=no\n\tVirtualEthernet=no\n\n\t[Files]\n\tTemporaryFileSystem=/tmp\n\nBoot it:\n\n\tsudo systemctl enable --now systemd-nspawn@github-actions.service\n\nAttach to the container and install the github-actions package:\n\n\tmachinectl shell github-actions\n\t\n\tcd /tmp\n\tsudo -u nobody git clone https://aur.archlinux.org/github-actions.git\n\tcd github-actions\n\tsudo -u nobody makepkg -fc\n\tpacman -U github-actions*.pkg.tar*\n\n### Limits\n\nLimit the memory consumption of your container to 2 GiB:\n\n\tsystemctl set-property systemd-nspawn@myContainer.service MemoryMax=2G\n\nLimit the CPU time usage to roughly the equivalent of 2 cores:\n\n\tsystemctl set-property systemd-nspawn@myContainer.service CPUQuota=200%\n\n#### ZFS Quotas\n\nTo ensure that your disk is not consumed by badly behaving test or malicious code:\n\n\tzfs create -o mountpoint=/var/lib/machines/github-actions -o quota=8G system/machines/github-actions\n\n### Attaching Shell\n\n\tsudo machinectl shell github-actions\n\n### Exposing Nvidia GPU\n\nAdd the following to the `github-actions.nspawn` configuration:\n\n\t[Files]\n\t# Expose GPU:\n\tBind=/dev/nvidia0\n\tBind=/dev/nvidiactl\n\nThen, ensure the container unit can see the required devices:\n\n\tsudo systemctl set-property systemd-nspawn@github-actions.service \"DeviceAllow=/dev/nvidia0 rwm\" \"DeviceAllow=/dev/nvidiactl rwm\"\n\nFinally, ensure the driver is a requirement of the container:\n\n\tsudo systemctl add-requires systemd-nspawn@github-actions.service nvidia-persistenced.service\n\nYou also may need the container to be running the same Linux kernel and drivers. For this, I use `linux-lts` and `nvidia-dkms` on both the host and container.\n\nYou can test this setup using `nvidia-smi` which should show the same output in both the host and container.\n\n## Removing runner\n\n\tsudo systemctl stop github-actions\n\tsudo systemctl disable github-actions\n\tsudo -u github-actions -s bash\n\tcd /var/lib/github-actions\n\tbin/Runner.Listener remove --token YOUR_RUNNER_TOKEN\n\t# prune configuration\n\t# rm -rf .config/GitHub* _diag _work .env .path svc.sh\n\texit\n\n## Contributing\n\n1. Fork from https://github.com/ioquatix/github-actions\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nReleased under the MIT license.\n\nCopyright, 2019, by [Samuel Williams](https://www.codeotaku.com).\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioquatix%2Fgithub-actions-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fioquatix%2Fgithub-actions-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioquatix%2Fgithub-actions-bin/lists"}