Skip to content

Update test.yml

Update test.yml #34

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: |
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 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 ./linux-build-artifacts/linux hostfs=debootstrap/ || true
- name: test
run: echo "test"