Update test.yml #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=debootstrap rootfstype=hostfs || true | |
- name: test | |
run: echo "test" | |