Skip to content

Update test.yml

Update test.yml #40

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ "linux-rolling-stable" ]
pull_request:
branches: [ "linux-rolling-stable" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: download artifact
uses: dawidd6/action-download-artifact@v2
with:
run_id: 6395652847
name: linux-build-artifacts
path: linux-build-artifacts
- name: make file
run: |
pwd
sudo apt-get install debootstrap
# dd if=/dev/zero of=umlfs bs=1 count=0 seek=1G
# mkfs -t ext4 -F umlfs
mkdir debootstrap
# sudo mount -o loop,rw umlfs debootstrap
sudo debootstrap --variant=minbase --include=kmod bookworm debootstrap/
sudo cp -rp linux-build-artifacts/lib/* debootstrap/lib
ls debootstrap/lib
sudo cp zeta/init debootstrap/sbin/init
sudo cp zeta/test-script.sh debootstrap/test-script.sh
# sudo umount umlfs
- name: run commands
run: |
sudo chmod +x linux-build-artifacts/linux
sudo chmod +x debootstrap/sbin/init
- name: Setup upterm session
uses: lhotari/action-upterm@v1
- name: command
run: sudo ./linux-build-artifacts/linux root=/dev/root rootflags="$(pwd)"/debootstrap rootfstype=hostfs devtmpfs.mount=0 || true
- name: test
run: echo "test"