-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial workflow * fix: wrong container path. * fix: build run command. * test: list directory. * test: list directory. * fix: add checkout action. * add setup scripts and instructions.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Setup self-hosted GitHub runners | ||
|
||
Instructions to set up self-hosted GitHub runners. | ||
|
||
- Setup the desired machine. | ||
- Create the runner by following the instructions in `Settings > Actions > Runners > New self-hosted runner`. | ||
- Run the setup script according to your OS from this directory. | ||
- (Optional - Linux) run `svc.sh` to make the runner work with `systemd`: `sudo ./svc.sh install && sudo ./svc.sh start` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Should be run as root | ||
|
||
apt -y update && apt -y upgrade | ||
apt -y install docker.io | ||
|
||
usermod -aG docker $USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Build and Test QEMU | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
container: registry.gitlab.com/qemu-project/qemu/qemu/ubuntu2204:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build QEMU | ||
run: mkdir -p build && cd build && ../configure --enable-werror --disable-docs --enable-fdt=system && make -j $(expr $(nproc) + 1) |