Create Github actions (#51)
* 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.
This commit is contained in:
parent
f282d6aef5
commit
131dca34d4
8
.github/setup_self_hosted/README.md
vendored
Normal file
8
.github/setup_self_hosted/README.md
vendored
Normal file
@ -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`
|
8
.github/setup_self_hosted/ubuntu.sh
vendored
Normal file
8
.github/setup_self_hosted/ubuntu.sh
vendored
Normal file
@ -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
|
16
.github/workflows/build_and_test.yaml
vendored
Normal file
16
.github/workflows/build_and_test.yaml
vendored
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user