forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.09 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
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: 6378412508
name: linux-build-artifacts
path: linux-build-artifacts
- name: make file
run: |
sudo su -
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
chmod +x linux-build-artifacts/linux
sudo ./linux-build-artifacts/linux ubd0=umlfs rw || true
- name: test
run: echo "test"