mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-07 20:05:24 +01:00
WIP: Reduced userland full launch
This commit is contained in:
parent
63b24502c7
commit
dedaae3ea3
2 changed files with 269 additions and 0 deletions
55
.github/workflows/qemu.yml
vendored
Normal file
55
.github/workflows/qemu.yml
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
name: Run under QEMU
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Run under bubblewrap
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Install qemu
|
||||
run: sudo apt-get install qemu-system-x86
|
||||
- name: enable kvm
|
||||
run: |
|
||||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger --name-match=kvm
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
# There is a strange bug(?) in nongnu, when you clone a git repository
|
||||
# against a commit != HEAD with depth=1, it errors out.
|
||||
fetch-depth: 0
|
||||
- name: Query cache for sources
|
||||
id: cache
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
mirror
|
||||
mirror-state
|
||||
key: cache-${{ hashFiles('steps/*/sources') }}
|
||||
restore-keys: |
|
||||
cache-
|
||||
- name: Get sources
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: mkdir -p mirror mirror-state && ./mirror.sh mirror mirror-state
|
||||
- name: Cache sources
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
mirror
|
||||
mirror-state
|
||||
key: cache-${{ hashFiles('steps/*/sources') }}
|
||||
- name: Run bootstrap
|
||||
run: bash qemu.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue