aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Williams2019-11-30 00:57:12 +0900
committerSamuel Williams2019-11-30 00:57:12 +0900
commitcf380d7eb1ea052da29ef143df2398a489a8287e (patch)
treed5da3be12c6d97b3211dc8923d848218b773388e
parent7ddaaad860fb6291d15c9ac70b31afaf2babad86 (diff)
downloadaur-cf380d7eb1ea052da29ef143df2398a489a8287e.tar.gz
Add README.
-rw-r--r--README.md95
1 files changed, 95 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 000000000000..81e259fea746
--- /dev/null
+++ b/README.md
@@ -0,0 +1,95 @@
+# GitHub Actions
+
+Provides an Arch Linux package for the GitHub Actions remote runner.
+
+## Motivation
+
+I 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.
+
+## Installation
+
+First, clone the repository:
+
+ git clone https://aur.archlinux.org/github-actions.git
+
+The build and install it:
+
+ cd github-actions
+ makepkg -fi
+
+Configure the daemon:
+
+ cd /opt/github-actions
+ ./config.sh --token ...
+
+Then start it up:
+
+ sudo systemctl enable --now github-actions
+
+## Usage
+
+You might want to combine this with a container. To create a container (including some suggested packages):
+
+ pacstrap -c github-actions base ruby clang pkg-build vim
+
+Then, import it:
+
+ machinectl import-fs github-actions
+
+Configure it:
+
+ $ cat /etc/systemd/nspawn/github-actions.nspawn
+ [Exec]
+ Boot=true
+ PrivateUsers=no
+
+ [Network]
+ Private=no
+ VirtualEthernet=no
+
+ [Files]
+ TemporaryFileSystem=/tmp
+
+ # Expose GPU:
+ Bind=/dev/nvidia0
+ Bind=/dev/nvidiactl
+
+Boot it:
+
+ sudo systemctl enable --now systemd-nspawn@github-actions.service
+
+### Attaching Shell
+
+ sudo machinectl shell github-actions
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
+
+## License
+
+Released under the MIT license.
+
+Copyright, 2019, by [Samuel Williams](https://www.codeotaku.com).
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.