File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Setup self-hosted GitHub runners
2
+
3
+ Instructions to set up self-hosted GitHub runners.
4
+
5
+ - Setup the desired machine.
6
+ - Create the runner by following the instructions in ` Settings > Actions > Runners > New self-hosted runner ` .
7
+ - Run the setup script according to your OS from this directory.
8
+ - (Optional - Linux) run ` svc.sh ` to make the runner work with ` systemd ` : ` sudo ./svc.sh install && sudo ./svc.sh start `
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Should be run as root
4
+
5
+ apt -y update && apt -y upgrade
6
+ apt -y install docker.io
7
+
8
+ usermod -aG docker $USER
Original file line number Diff line number Diff line change
1
+ name : Build and Test QEMU
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : self-hosted
12
+ container : registry.gitlab.com/qemu-project/qemu/qemu/ubuntu2204:latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Build QEMU
16
+ run : mkdir -p build && cd build && ../configure --enable-werror --disable-docs --enable-fdt=system && make -j $(expr $(nproc) + 1)
You can’t perform that action at this time.
0 commit comments