forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.21 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 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 root=/dev/root rootflags="$(pwd)"/debootstrap rootfstype=hostfs devtmpfs.mount=0 || true
- name: test
run: echo "test"