Skip to content

Commit 03568a1

Browse files
committed
Initial commit
Split off from original code in https://github.com/cgwalters/bootc-kit/ Signed-off-by: Colin Walters <walters@verbum.org>
0 parents  commit 03568a1

111 files changed

Lines changed: 27656 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
xtask = "run --package xtask --"

.github/workflows/docs.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ 'docs/**' ]
7+
pull_request:
8+
branches: [ main ]
9+
paths: [ 'docs/**' ]
10+
workflow_dispatch:
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install mdBook
26+
run: |
27+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.37/mdbook-v0.4.37-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=.
28+
echo "$(pwd)" >> $GITHUB_PATH
29+
30+
- name: Install mdbook-mermaid
31+
run: |
32+
curl -sSL https://github.com/badboy/mdbook-mermaid/releases/download/v0.13.0/mdbook-mermaid-v0.13.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=.
33+
echo "$(pwd)" >> $GITHUB_PATH
34+
35+
- name: Install mdbook-linkcheck
36+
run: |
37+
curl -sSL https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.7/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip -o linkcheck.zip
38+
unzip linkcheck.zip
39+
chmod +x mdbook-linkcheck
40+
echo "$(pwd)" >> $GITHUB_PATH
41+
42+
- name: Install mdbook_header_footer
43+
run: |
44+
curl -sSL https://github.com/cgwalters/mdbook_header_footer/releases/download/v0.1.0/mdbook_header_footer-v0.1.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=.
45+
echo "$(pwd)" >> $GITHUB_PATH
46+
47+
- name: Build documentation
48+
run: |
49+
cd docs
50+
mdbook build
51+
52+
- name: Upload artifact
53+
if: github.ref == 'refs/heads/main'
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: docs/book/html
57+
58+
deploy:
59+
if: github.ref == 'refs/heads/main'
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
permissions:
66+
pages: write
67+
id-token: write
68+
steps:
69+
- name: Deploy to GitHub Pages
70+
id: deployment
71+
uses: actions/deploy-pages@v4

.github/workflows/main.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-24.04
13+
14+
steps:
15+
- name: Install dependencies
16+
run: |
17+
sudo apt update
18+
sudo apt install -y just pkg-config go-md2man libvirt-daemon libvirt-clients qemu-kvm qemu-system qemu-utils virtiofsd
19+
20+
- name: Install podman for heredoc support
21+
run: |
22+
set -eux
23+
echo 'deb [trusted=yes] https://ftp.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list
24+
sudo apt update
25+
sudo apt install -y crun/testing podman/testing just
26+
27+
- name: Enable KVM group perms
28+
run: |
29+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
30+
sudo udevadm control --reload-rules
31+
sudo udevadm trigger --name-match=kvm
32+
ls -l /dev/kvm
33+
34+
- uses: actions/checkout@v4
35+
36+
- name: Setup Rusthttps://github.com/teemtee/tmt/issues/4062
37+
uses: dtolnay/rust-toolchain@stable
38+
39+
- name: Cache build artifacts
40+
uses: Swatinem/rust-cache@v2
41+
42+
- name: Build
43+
run: just build
44+
45+
- name: Run unit tests
46+
run: just test
47+
48+
- name: Run integration tests
49+
run: just test-integration

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

.goosehints

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/HACKING.md

0 commit comments

Comments
 (0)