I've had a need for this package again, so I've updated it to the latest release.
I also added sandboxing and default nvidia gpu support to the service file.
I also fixed the missing run template, and the node version issues.
Git Clone URL: | https://aur.archlinux.org/github-actions-bin.git (read-only, click to copy) |
---|---|
Package Base: | github-actions-bin |
Description: | GitHub Actions self-hosted runner tools. |
Upstream URL: | https://github.com/actions/runner |
Licenses: | MIT |
Conflicts: | github-actions |
Provides: | github-actions |
Submitter: | ioquatix |
Maintainer: | petronny (ioquatix, AutoUpdateBot) |
Last Packager: | AutoUpdateBot |
Votes: | 5 |
Popularity: | 0.28 |
First Submitted: | 2020-04-01 04:25 (UTC) |
Last Updated: | 2025-08-14 07:59 (UTC) |
I've had a need for this package again, so I've updated it to the latest release.
I also added sandboxing and default nvidia gpu support to the service file.
I also fixed the missing run template, and the node version issues.
What gyscos says. According to the changelog, node16 was removed with runner version v2.321.0. I changed it to node20 in the PKGBUILD [1] and was successfully able to configure and start a job with it.
If you use paru as aur-helper, you can add the following lines to your /etc/paru.conf
:
[ADABRU]
Url = https://github.com/adabru/github-actions-bin
Then run paru -S github-actions-bin
to install the patched version. Alternatively, you can create your own GitHub fork.
[1] https://github.com/adabru/github-actions-bin/commit/20926f2f7970b0a860509f62b0d7ceb4d4d7f097
Somehow the github-actions.service tries to run /var/lib/github-actions/externals/node16/bin/node
, but the externals
folder only has node20
and node20_alpine
folders.
Currently broken because the *.template files are not copied into the package. Here's a patch:
diff --git a/PKGBUILD b/PKGBUILD
index e1c4865..7b9a916 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,7 +56,7 @@ package() {
# Useless on pacman-based distributions
rm -f "$srcdir"/bin/installdependencies.sh
- cp -r -t "$pkgdir"/var/lib/$_pkgname "$srcdir"/{bin,externals,*.sh}
+ cp -r -t "$pkgdir"/var/lib/$_pkgname "$srcdir"/{bin,externals,*.sh,*.template}
# also see github-actions.tmpfiles
chmod 0775 "$pkgdir"/var/lib/$_pkgname
@Mike616 (and anyone else wondering)
To configure the runner, run config.sh as user github-actions:
$ cd /var/lib/github-actions
$ sudo -u github-actions ./config --url https://github.com/your/repo --token AAA...
$ sudo systemctl enable github-actions.service
$ sudo systemctl start github-actions.service
You found the token you need to use under https://github.com/your/repo/settings/actions/runners/new?arch=x64&os=linux
@loathingkernel Thanks. Fixed.
Please, don't do this
install=PKGBUILD
I get that it works and it's cool, but it's bad to break standardized procedures. pre_remove
and post_remove
should go into their own <something>.install
file. There is no guarantee that there won't ever be a name overlap between the functions defined in a PKGBUILD
and an .install
file
What's the correct process for installing this? After installation, I tried to run /var/lib/github-actions/config.sh but it fails because my user doesn't have write perms for the directory. It also won't let me run with sudo so I chown root:wheel -R /var/lib/github-actions
. I was able to configure but systemctl start github-actions.service
fails because:
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/var/lib/github-actions/_diag/Runner_20221111-001156-utc.log' is denied.
This file doesn't exist but the directory has 775 and is owned by root:wheel
. What do I need to do to fix it?
I am currently not sure of the exact sequence of events that leads to the error.
I think it should be:
bin
for root:root
. bin
to bin.2.296.1
, download and create bin.2.296.2
, and create bin
as a symlink to bin.2.296.2
. So bin.2.296.1
is owned by root:root
.bin
to bin.2.296.1
again and give the error.@petronny I am currently not sure of the exact sequence of events that leads to the error. Usually we discover the issue after a reboot (which is typically, but not always, preceded by a system update).
Not sure why we would already have /var/lib/github-actions/bin.2.296.1/
in our system? There are only 2 places it could have come from, (1) the auto-updater, or (2) upgrading this package, and I would not expect either of those two actions to result in an error such as this.
Pinned Comments
petronny commented on 2022-09-28 08:29 (UTC)
Prebuilt binaries of this package can be found in arch4edu.