Build images #805
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
# This is a basic workflow to help you get started with Actions | |
name: Build images | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
# push: | |
# branches: [ ci-test, master ] | |
schedule: | |
- cron: '42 0 * * *' | |
workflow_dispatch: | |
# pull_request: | |
# branches: [ master ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
buster_armhf: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Runs a set of commands using the runners shell | |
- name: Install needed packagest | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2 ansible | |
- name: Install vmdb2 | |
run: | | |
wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb | |
sudo dpkg -i vmdb2_0.22-1_all.deb | |
- name: Build Cubieboard2 | |
run: sudo vmdb2 cubieboard2_buster_armhf_vmdb2-0.15.yaml --output cubieboard2_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv cubieboard2_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubieboard2_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 cubieboard2_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: cubieboard2_buster_armhf.img.bz2 | |
path: cubieboard2_buster_armhf.img.bz2 | |
- name: Build Cubietruck | |
run: sudo vmdb2 cubietruck_buster_armhf_vmdb2-0.15.yaml --output cubietruck_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv cubietruck_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 cubietruck_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: cubietruck_buster_armhf.img.bz2 | |
path: cubietruck_buster_armhf.img.bz2 | |
- name: Build Cubietruck Plus | |
run: sudo vmdb2 cubietruck-plus_buster_armhf_vmdb2-0.15.yaml --output cubietruck-plus_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv cubietruck-plus_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck-plus_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 cubietruck-plus_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: cubietruck-plus_buster_armhf.img.bz2 | |
path: cubietruck-plus_buster_armhf.img.bz2 | |
- name: Build OrangePi R1 | |
run: sudo vmdb2 orangepi-r1_buster_armhf_vmdb2-0.15.yaml --output orangepi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv orangepi-r1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv orangepi-r1_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 orangepi-r1_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: orangepi-r1_buster_armhf.img.bz2 | |
path: orangepi-r1_buster_armhf.img.bz2 | |
- name: Build NanoPi R1 | |
run: sudo vmdb2 nanopi-r1_buster_armhf_vmdb2-0.15.yaml --output nanopi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv nanopi-r1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv nanopi-r1_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 nanopi-r1_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: nanopi-r1_buster_armhf.img.bz2 | |
path: nanopi-r1_buster_armhf.img.bz2 | |
- name: Build Odroid HC1 | |
run: sudo vmdb2 odroid-hc1_buster_armhf_vmdb2-0.15.yaml --output odroid-hc1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv odroid-hc1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv odroid-hc1_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 odroid-hc1_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: odroid-hc1_buster_armhf.img.bz2 | |
path: odroid-hc1_buster_armhf.img.bz2 | |
- name: Build Udoo Quad | |
run: sudo vmdb2 udoo-quad_buster_armhf_vmdb2-0.15.yaml --output udoo-quad_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv udoo-quad_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv udoo-quad_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 udoo-quad_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: udoo-quad_buster_armhf.img.bz2 | |
path: udoo-quad_buster_armhf.img.bz2 | |
- name: Build Jetson TK1 | |
run: sudo vmdb2 jetson-tk1_buster_armhf_vmdb2-0.15.yaml --output jetson-tk1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv jetson-tk1_buster_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv jetson-tk1_buster_armhf.img | |
- name: Compress image | |
run: sudo lbzip2 jetson-tk1_buster_armhf.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: jetson-tk1_buster_armhf.img.bz2 | |
path: jetson-tk1_buster_armhf.img.bz2 | |
buster_arm64: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Runs a set of commands using the runners shell | |
- name: Install needed packagest | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2 ansible | |
- name: Install vmdb2 | |
run: | | |
wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb | |
sudo dpkg -i vmdb2_0.22-1_all.deb | |
- name: Build Rock64 | |
run: sudo vmdb2 rock64_buster_arm64_vmdb2-0.15.yaml --output rock64_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv rock64_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv rock64_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 rock64_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: rock64_buster_arm64.img.bz2 | |
path: rock64_buster_arm64.img.bz2 | |
- name: Build Pine A64+ | |
run: sudo vmdb2 pine-a64-plus_buster_arm64_vmdb2-0.15.yaml --output pine-a64-plus_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv pine-a64-plus_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv pine-a64-plus_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 pine-a64-plus_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: pine-a64-plus_buster_arm64.img.bz2 | |
path: pine-a64-plus_buster_arm64.img.bz2 | |
- name: Build Pinebook | |
run: sudo vmdb2 pinebook_buster_arm64_vmdb2-0.15.yaml --output pinebook_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv pinebook_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv pinebook_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 pinebook_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: pinebook_buster_arm64.img.bz2 | |
path: pinebook_buster_arm64.img.bz2 | |
- name: Build NanoPi NEO 2 | |
run: sudo vmdb2 nanopi-neo2_buster_arm64_vmdb2-0.15.yaml --output nanopi-neo2_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv nanopi-neo2_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv nanopi-neo2_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 nanopi-neo2_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: nanopi-neo2_buster_arm64.img.bz2 | |
path: nanopi-neo2_buster_arm64.img.bz2 | |
- name: Build Odroid N2 | |
run: sudo vmdb2 odroid-n2_buster_arm64_vmdb2-0.15.yaml --output odroid-n2_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv odroid-n2_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv odroid-n2_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 odroid-n2_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: odroid-n2_buster_arm64.img.bz2 | |
path: odroid-n2_buster_arm64.img.bz2 | |
- name: Build Jetson TX1 | |
run: sudo vmdb2 jetson-tx1_buster_arm64_vmdb2-0.15.yaml --output jetson-tx1_buster_arm64.img --rootfs-tarball buster_arm64_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
- name: Zero-ing obsolete data blocks | |
run: loopN=$(sudo kpartx -asv jetson-tx1_buster_arm64.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv jetson-tx1_buster_arm64.img | |
- name: Compress image | |
run: sudo lbzip2 jetson-tx1_buster_arm64.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: jetson-tx1_buster_arm64.img.bz2 | |
path: jetson-tx1_buster_arm64.img.bz2 | |
# bullseye_armhf: | |
# # The type of runner that the job will run on | |
# runs-on: ubuntu-latest | |
# | |
# # Steps represent a sequence of tasks that will be executed as part of the job | |
# steps: | |
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
# - uses: actions/checkout@v2 | |
# | |
# # Runs a set of commands using the runners shell | |
# - name: Install needed packagest | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install python3-cliapp cmdtest debootstrap qemu-utils kpartx qemu-user-static binfmt-support zerofree lbzip2 | |
# | |
# - name: Install vmdb2 | |
# run: | | |
# wget http://ftp.de.debian.org/debian/pool/main/v/vmdb2/vmdb2_0.22-1_all.deb | |
# sudo dpkg -i vmdb2_0.15-1_all.deb | |
# | |
# - name: Build Cubietruck Plus | |
# run: sudo vmdb2 cubietruck-plus_bullseye_armhf_vmdb2-0.15.yaml --output cubietruck-plus_bullseye_armhf.img --rootfs-tarball bullseye_armhf_rootfs.tgz --verbose --log=log.txt; cat log.txt | |
# | |
# - name: Zero-ing obsolete data blocks | |
# run: loopN=$(sudo kpartx -asv cubietruck-plus_bullseye_armhf.img | cut -d\ -f 3); sudo zerofree /dev/mapper/$loopN; sync; sudo kpartx -dsv cubietruck-plus_bullseye_armhf.img | |
# | |
# - name: Compress image | |
# run: sudo lbzip2 cubietruck-plus_bullseye_armhf.img | |
# | |
# - uses: actions/upload-artifact@v1 | |
# with: | |
# name: cubietruck-plus_bullseye_armhf.img.bz2 | |
# path: cubietruck-plus_bullseye_armhf.img.bz2 |