Merge pull request #7 from adomerle/master #87
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: 'recursive' | |
| - name: Install requires packages | |
| run: | | |
| sudo apt update | |
| sudo apt install --yes --no-install-recommends \ | |
| git cmake gcc binutils make ninja-build gettext busybox zstd pciutils \ | |
| iproute2 strace gdbserver htop lsof lz4 parted dosfstools ed eject \ | |
| net-tools iputils-ping lrzsz cpio nano gpm gdb vim rfkill kbd gzip \ | |
| uuid-runtime kmod bridge-utils tree usbutils dhcpcd5 efibootmgr acl \ | |
| coreutils btrfs-progs pciutils bsdmainutils device-tree-compiler \ | |
| libdrm-dev libblkid-dev libmount-dev libkmod-dev libreadline-dev \ | |
| libfdisk-dev libfreetype-dev pkgconf | |
| - name: Build Main | |
| run: bash scripts/build.sh | |
| - name: Strip Main | |
| run: strip build/simple-init | |
| - name: Build Initramfs | |
| run: bash scripts/gen-initramfs.sh build/initramfs.img | |
| - name: Upload Artifact simple-init | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: simple-init | |
| path: build/simple-init | |
| - name: Upload Artifact initramfs.img | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: initramfs.img | |
| path: build/initramfs.img |