Auto Build Debian riscv64 vf2 image #23
Workflow file for this run
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: Auto Build Debian riscv64 vf2 image | |
on: | |
push: | |
tags: | |
- '*' | |
branches: | |
- '*' | |
jobs: | |
build-all-os: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Git | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Get tag name | |
run: echo "Tag name is ${{ github.ref_name }}" | |
- name: "Update APT sources" | |
run: | | |
sudo apt update | |
- name: Install depends | |
run: sudo apt install -y qemu-user-static qemu-system qemu-utils qemu-system-misc binfmt-support | |
- name: Prepare | |
run: | | |
ls ${{runner.workspace}} | |
mkdir -p image | |
- name: Create vf2 rootfs | |
run: | | |
export DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 vf2 | |
KERNEL_VERSION=${{ github.ref_name }} docker-compose up vf2 | |
ls -l image/* | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
image/vf2-rootfs*.img.xz |