Files
NANOKVM-LicheeRV-Nano-Build…/.github/workflows/licheervnano-host-linux-amd64.yml
2024-02-26 13:24:07 +08:00

75 lines
3.5 KiB
YAML

name: licheervnano-host-linux-amd64-cvi-mmf-sdk-ci
on:
workflow_dispatch:
jobs:
mksys:
strategy:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: "20G"
create-symlink: true
key: ${{matrix.os }}-${{ matrix.type }}
- name: Create Timestamp
run: |
echo "BUILD_ID=$(date +%Y%m%d_%H%M%S)" >> $GITHUB_ENV
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Install Software
run: |
sudo apt update && \
sudo apt install -y build-essential autoconf automake autotools-dev ninja-build make help2man \
libncurses-dev gawk flex bison openssl libssl-dev tree wget curl cmake ccache \
libtool-bin bc bzr ca-certificates cmake cpio cvs file git locales mercurial \
openssh-server python3 python3-flake8 python3-magic python3-nose2 python3-pexpect \
python3-pytest rsync shellcheck subversion unzip pkg-config libssl-dev slib \
squashfs-tools android-sdk-libsparse-utils rsync jq cmake python3-distutils \
tclsh scons parallel ssh-client tree python3-dev python3-pip device-tree-compiler \
libssl-dev ssh cpio squashfs-tools fakeroot libncurses5-dev flex bison mmdebstrap \
android-libext4-utils bdebstrap proot fakeroot fakechroot python3 python3-flake8 \
python3-nose2 python3-pexpect subversion unzip ccache picolibc-riscv64-unknown-elf\
crossbuild-essential-riscv64 binutils-riscv64-unknown-elf\
cpp-riscv64-linux-gnu g++-riscv64-linux-gnu gcc-riscv64-linux-gnu\
libc6-dbg-riscv64-cross libatomic1-riscv64-cross libasan8-riscv64-cross\
libc6-dev-riscv64-cross gcc-riscv64-unknown-elf gawk diffstat texinfo\
chrpath socat python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
python3-subunit mesa-common-dev zstd liblz4-tool libacl1 parted erofs-utils \
genext2fs mtools fatcat ckermit neovim cscope asciinema libconfuse-dev
- name: Checkout Repo
uses: actions/checkout@v3
with:
path: 'cvi_mmf_sdk' # TODO: make this name a global variable
ref: 'newsdk'
- name: Make System
run: |
pushd cvi_mmf_sdk
git submodule update --init --recursive --depth=1
git config user.name 'gh'
git config user.email 'gh@none.nop'
./apply_patches.sh
source build/cvisetup.sh
defconfig sg2002_licheervnano_sd
build_all
./build/tools/common/sd_tools/sd_gen_burn_image_rootless.sh install/soc_sg2002_licheervnano_sd/
popd
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
retention-days: 30
name: licheervnano-cvi-mmf-sdk-output-${{ env.BUILD_ID }}
path: |
cvi_mmf_sdk/install/soc_sg2002_licheervnano_sd/images/*